erp5:6a88f527731a34a689fdaf6f90ac2cc7b83a8a63 commitshttps://lab.nexedi.com/nexedi/erp5/-/commits/6a88f527731a34a689fdaf6f90ac2cc7b83a8a632019-11-19T16:56:06+01:00https://lab.nexedi.com/nexedi/erp5/-/commit/6a88f527731a34a689fdaf6f90ac2cc7b83a8a63Document/{File,PDFDocument}: drop the precondition to edit a file2019-11-19T16:56:06+01:00Bryton Lacquementbryton.lacquement@nexedi.com
'precondition' was an attribute from Products.CMFDefault. As we dropped
the latter, and the attribute has never been used in ERP5, we can delete
it.https://lab.nexedi.com/nexedi/erp5/-/commit/eacbf32f996edc9381661df7c5ca06bb655d70e1Drop CMFDefault's tools2019-11-19T16:56:06+01:00Bryton Lacquementbryton.lacquement@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/4f1ef5058c25b57cbf2e1f2df77e7fca3d9e5d39testTemplateTool: test the migration of actions in erp5_csv_style when updati...2019-11-19T16:16:26+01:00Bryton Lacquementbryton.lacquement@nexedi.com
cf commit <a href="/nexedi/erp5/-/commit/550e81b0bf68340e8f7c39902978024a17112943" data-original="550e81b0bf68340e8f7c39902978024a17112943" data-link="false" data-link-reference="false" data-project="1" data-commit="550e81b0bf68340e8f7c39902978024a17112943" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="bt5/erp5_csv_style: move actions from portal_properties to portal_actions" class="gfm gfm-commit has-tooltip">550e81b0</a>https://lab.nexedi.com/nexedi/erp5/-/commit/419783653330fd6935a0a7c81ab732c3c418bd63bt5/erp5_csv_style: move actions from portal_properties to portal_actions2019-11-19T16:16:26+01:00Bryton Lacquementbryton.lacquement@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/03c7df492c747be63f82c1e5e72c6911bde54989ERP5Site: stop registering CMFDefault's Images directory2019-11-19T16:16:26+01:00Bryton Lacquementbryton.lacquement@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/39b529ba50cfdea54fdb2c4ad94c4234423d765fGet rid of Products.CMFDefault.{File.File,Portal.CMFSite}2019-11-19T16:16:26+01:00Bryton Lacquementbryton.lacquement@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/6e5bc689ec181b8e5bf4d96915f4d6139c1cb272erp5_xhtml_style: do not use getToolByName to access tools2019-11-19T16:04:09+01:00Bryton Lacquementbryton.lacquement@nexedi.com
Also some code refactoring.https://lab.nexedi.com/nexedi/erp5/-/commit/7f36b4b7204ca9570ccb2af4a4ec9a861feb9daepatches/CookieCrumbler: update patch for CMF 2.32019-11-19T16:04:09+01:00Bryton Lacquementbryton.lacquement@nexedi.com
ICookieCrumbler.credentialsChanged signature changed in Products.CMFCore
2.3.0-beta. We also update the patch on the same occasion.https://lab.nexedi.com/nexedi/erp5/-/commit/5c473ff5a28030ed524f8d1bbc58a07a00bd100ftestERP5Core: also test the tools registration when testing the site manager ...2019-11-19T16:04:09+01:00Bryton Lacquementbryton.lacquement@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/1ed1eda6477e3ffdc8f52c15c52f9a949e8dcba3ERP5Site: register missing tools2019-11-18T16:44:38+01:00Bryton Lacquementbryton.lacquement@nexedi.com
... so that queryUtility can later access the correct ones.
Note: we do not necessarily want to register all tools.https://lab.nexedi.com/nexedi/erp5/-/commit/65c5a3a8fb729f38e73632912f4f89df7265d0c0patches/{DynamicType,WorkflowTool}: do not use queryUtility to access tools2019-11-18T15:05:55+01:00Bryton Lacquementbryton.lacquement@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/d52baf1ddf65d3e12c0a37d5650c316e88bea73dpatches/CMFCoreSkinnable: do not use getSkinsFolderName2019-11-18T15:05:55+01:00Bryton Lacquementbryton.lacquement@nexedi.com
It is no longer supported in CMF 2.3, see Products.CMFCore
754894460271f8562d03e8c51e6efcee7223a3ba.https://lab.nexedi.com/nexedi/erp5/-/commit/8a27d8624d44e004e32de1073da8cb98effe86bbtestFields: stop using _setUpDefaultTraversable2019-11-18T15:05:55+01:00Bryton Lacquementbryton.lacquement@nexedi.com
It is no longer supported in CMF 2.3, see Products.CMFCore
be875bb45272ad6ad3c2e14d72a41295dc7389cf.https://lab.nexedi.com/nexedi/erp5/-/commit/003e9e36a10a46caa3de7fa96f1f6d97a31fdacfBusinessTemplate: do not use getToolByName to access portal_skins2019-11-18T15:05:55+01:00Bryton Lacquementbryton.lacquement@nexedi.com
getToolByName(portal, 'portal_skins').REQUEST: AttributeErrorhttps://lab.nexedi.com/nexedi/erp5/-/commit/8515e0acf4abf565db5ec3996dcf36b9d58d3281PortalTransforms: safe_html: Changes in b255c89 were not actually applied so...2019-11-18T20:09:51+09:00Arnaud Fontainearnaud.fontaine@nexedi.comPortalTransforms: safe_html: Changes in <a href="/nexedi/erp5/-/commit/b255c894fa25e05ae280a1e7f938deb0f3673232" data-original="b255c89" data-link="false" data-link-reference="false" data-project="1" data-commit="b255c894fa25e05ae280a1e7f938deb0f3673232" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="PortalTransforms: merge upstream 2.0" class="gfm gfm-commit has-tooltip">b255c894</a> were not actually applied so merge FS module and portal_transforms/safe_html.
https://lab.nexedi.com/nexedi/erp5/-/commit/3c17164458aa0e334888953ed22d2f25c639df37ERP5Form.Listbox: Do not use column titles from selection.2019-11-18T17:12:52+09:00Vincent Pelletiervincent@nexedi.com
These titles duplicate listbox configuration, preventing any change from
reaching users (...who customised their listbox).
Also fixes cases where column title was stored in selection after
translation, which breaks some reports.https://lab.nexedi.com/nexedi/erp5/-/commit/7093c2a542058a1185c598ebeff973ae21688604ERP5Form.Listbox: Modernise getSelectedColumnList2019-11-18T16:11:18+09:00Vincent Pelletiervincent@nexedi.com
Avoid double-calls when one is enough.
Avoid unused locals.
Avoid repeating conditions.
Inline single-use expressions.https://lab.nexedi.com/nexedi/erp5/-/commit/f0890d938449e51847f40c1716cbe5d647bdd0baERP5Type: add a transaction note when bootstraping2019-11-18T03:21:58+01:00Jérome Perrinjerome@nexedi.com
Bootstrap is actually the automatic migration of tools. It happened to me
several times that I mistakenly start an old instance on a too new version of
products and this instance is migrated automatically.
By leaving a note in transaction it's easier to find out which
transaction performed the automatic migration to revert to the state
before using technique such as
<a href="https://blog.gocept.com/2019/06/14/undo-transactions-by-truncating-zodb-data-fs/" rel="nofollow noreferrer noopener" target="_blank">https://blog.gocept.com/2019/06/14/undo-transactions-by-truncating-zodb-data-fs/</a>
for FileStorage.
with this change, a command such as;
python -m ZODB.scripts.fstail -n 20 ./instance/slappart6/srv/zodb/root.fs
show something like:
2019-11-12 02:46:42.106313: hash=44fecb9a63411fbf305cea82f4c699c478000d61
user=' None' description='/timer_service/process_timer\nSite migrated' length=462938 offset=881877846 (+70)
for the transaction which did the migration, so it's easy to repair.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/erp5/merge_requests/975" data-original="https://lab.nexedi.com/nexedi/erp5/merge_requests/975" data-link="false" data-link-reference="true" data-project="1" data-merge-request="3379" data-project-path="nexedi/erp5" data-iid="975" data-mr-title="ERP5Type: add a transaction note when bootstraping" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!975</a>https://lab.nexedi.com/nexedi/erp5/-/commit/4f46e3efbee795279c7e67be7af1048f23206e45PortalTransforms: Move Transforms out of erp5_core to their appropriate bt5s.2019-11-18T10:11:56+09:00Arnaud Fontainearnaud.fontaine@nexedi.com
* erp5_dms: ERP5OOo/ConversionServer-related Transforms.
* erp5_web: Web Page-related Transform.
* erp5_base: Everything else.
Also, ZODB Components Transforms modules were 'Document Component', whereas
it should be 'Module Component' (introduced recently) considering that they
have no Portal Type.https://lab.nexedi.com/nexedi/erp5/-/commit/fe49fd0517dd878b218ee8111d5272d104f3b320[erp5_hal_json_style] Ensure action URL parameters are can be used as default...2019-11-15T16:43:17+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/ec6473c5a0b273ac5715ec374b92086ddbf53338Add comment about recent workaround for circular import dependency2019-11-14T18:36:16+01:00Julien Muchembledjm@nexedi.com
See commit <a href="/tomo/erp5/-/commit/a93ea5f1a88b416e3b2ad76472bb96b84d933099" data-original="a93ea5f1a88b416e3b2ad76472bb96b84d933099" data-link="false" data-link-reference="false" data-project="850" data-commit="a93ea5f1a88b416e3b2ad76472bb96b84d933099" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="CMFActivity: fix direct import of getServerAddress for TIDStorage product" class="gfm gfm-commit has-tooltip">a93ea5f1</a>.https://lab.nexedi.com/nexedi/erp5/-/commit/d4cde62eab21952dc3e5ba32b83bdd8138e7c0ef[erp5_web_renderjs_ui] Propagate the existing cancel_url when displaying a di...2019-11-14T11:56:58+01:00Romain Courteaudromain@nexedi.com
Test cancelling a dialog displayed twice.
Test submitting a dialog displayed twice.https://lab.nexedi.com/nexedi/erp5/-/commit/6cb425623010754caa7ee79648dad8525296ca8f[erp5_core] Use SameSite=None cookie2019-11-14T09:28:39+01:00Romain Courteaudromain@nexedi.com
Keep compatibility with officejs appshttps://lab.nexedi.com/nexedi/erp5/-/commit/33e9baded23a31d3f5c6e95559d43195141189b6[erp5_project/trade] Activate actions for ERP5JS2019-11-14T09:28:38+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/b30ede57ad0ccf2e89e87c333e260ea11977f8f3[erp5_web_renderjs_ui] Listfield: always send the default_%s:int:0 value2019-11-14T09:28:38+01:00Romain Courteaudromain@nexedi.com
Compatibilityhttps://lab.nexedi.com/nexedi/erp5/-/commit/dab26b0db061ca328c2c72948db393bd8b1363b4PortalTransforms: Avoid hack to import module, instead use `fromlist` __impor...2019-11-14T11:05:02+09:00Arnaud Fontainearnaud.fontaine@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/8c9a9f09af070c7bd2ba5d55e63b2986cea40c05ZODB Components: PortalTransforms: No need to reload() 'erp5.' dynamic module...2019-11-14T11:05:01+09:00Arnaud Fontainearnaud.fontaine@nexedi.comZODB Components: PortalTransforms: No need to reload() 'erp5.' dynamic modules as this done through reset.
https://lab.nexedi.com/nexedi/erp5/-/commit/6569c1fc3ae367453c9f0fb0914c46c198a91b83PortalTransforms: _unmapTransform(): Do not fail if there is nothing to actua...2019-11-14T11:05:01+09:00Arnaud Fontainearnaud.fontaine@nexedi.com
Calling manage_reloadAllTransforms was raising KeyError.https://lab.nexedi.com/nexedi/erp5/-/commit/d49c859a592b0f261d9a9d4d7837f425f3689a09ZODB Components: image_to_{bmp,pcx} have already been migrated but the...2019-11-14T11:04:05+09:00Arnaud Fontainearnaud.fontaine@nexedi.comZODB Components: image_to_{bmp,pcx} have already been migrated but the filesystem modules still existed.
You may have to either restart your instance or call portal_transforms/manage_reloadAllTransforms
for this change to take effect.
https://lab.nexedi.com/nexedi/erp5/-/commit/a93ea5f1a88b416e3b2ad76472bb96b84d933099CMFActivity: fix direct import of getServerAddress for TIDStorage product2019-11-13T15:08:54+01:00Julien Muchembledjm@nexedi.com
This is a mirror of the late import of getCurrentNode within
product/ERP5Type/Core/Folder.py
Both are required depending on which module is imported first.https://lab.nexedi.com/nexedi/erp5/-/commit/2260fc70fcdf0e64a951fbf0ce151e3f7725292aRevert "Make sure CMFCategory product is imported before ERP5Type.Core.Folder"2019-11-13T14:52:12+01:00Julien Muchembledjm@nexedi.com
This reverts commit <a href="/gabriel/erp5/-/commit/0af3e8f670e72218a80120c64a6be4cf4fb26a0b" data-original="0af3e8f670e72218a80120c64a6be4cf4fb26a0b" data-link="false" data-link-reference="false" data-project="145" data-commit="0af3e8f670e72218a80120c64a6be4cf4fb26a0b" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="Make sure CMFCategory product is imported before ERP5Type.Core.Folder" class="gfm gfm-commit has-tooltip">0af3e8f6</a>.
This is not required anymore since ERP5Type.PropertySheet is a dynamic module
(commit <a href="/gabriel/erp5/-/commit/9ddcbfc1a30a2c750340f2ad8dde3f0a5999f38a" data-original="9ddcbfc1a30a2c750340f2ad8dde3f0a5999f38a" data-link="false" data-link-reference="false" data-project="145" data-commit="9ddcbfc1a30a2c750340f2ad8dde3f0a5999f38a" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="First step of migration to zodb property sheets" class="gfm gfm-commit has-tooltip">9ddcbfc1</a>).https://lab.nexedi.com/nexedi/erp5/-/commit/08bf6d9472b7881562ca78bf5ba4703303b39e46fixup! pdm: introduce a asCellRange script for Measure2019-11-12T02:39:25+00:00Jérome Perrinjerome@nexedi.com
from <a href="/nexedi/erp5/-/commit/a41f71c3953af5fe18b5d2494c6122d47dfab289" data-original="a41f71c395" data-link="false" data-link-reference="false" data-project="1" data-commit="a41f71c3953af5fe18b5d2494c6122d47dfab289" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="pdm: introduce a asCellRange script for Measure" class="gfm gfm-commit has-tooltip">a41f71c3</a> :
> Remove the TALES for lines, columns and tab on the matrix box because
> the default behavior is to call this updateCellRange script
that's not true, we have to list the asCellRange script explicitly.https://lab.nexedi.com/nexedi/erp5/-/commit/eabcb211b05fc8552008993949adfa2ea47980e7ZODB Components: ModuleSecurityInfo() should also apply to the alias module,...2019-11-12T10:20:14+09:00Arnaud Fontainearnaud.fontaine@nexedi.comZODB Components: ModuleSecurityInfo() should also apply to the alias module, not only to the versioned one.
This fixes an Unauthorized error when GitLoginError is imported from
erp5.component.module.Git defining ModuleSecurityInfo() for __name__
(erp5.component.module.erp5_version.Git).
Note that when migrating the content of a Product, ModuleSecurityInfo() first
parameter must be __name__.
Traceback (innermost last):
[...]
Module script, line 1, in BusinessTemplate_handleException
- <PythonScript at /erp5/BusinessTemplate_handleException used for /erp5/portal_templates/832>
- Line 1
from erp5.component.module.Git import GitLoginError
Module Products.ERP5Type.patches.Restricted, line 305, in guarded_import
return orig_guarded_import(mname, globals, locals, fromlist, level)
Module AccessControl.ZopeGuards, line 305, in guarded_import
raise Unauthorized("import of '%s' is unauthorized" % mname)
Unauthorized: import of 'erp5.component.module.Git' is unauthorized
https://lab.nexedi.com/nexedi/erp5/-/commit/223d4818231018a50c0e06ee11fb393d16ffb16fZODB Components: Alias module was not added to sys.modules if the module it...2019-11-12T10:16:45+09:00Arnaud Fontainearnaud.fontaine@nexedi.comZODB Components: Alias module was not added to sys.modules if the module it points to had already been loaded before.
https://lab.nexedi.com/nexedi/erp5/-/commit/96851e6a30d9d4e40716cf4ea0d5d38546272ee2erp5_officejs: fix on page loading speed up2019-11-11T17:23:20+01:00Roque Porchettoroque.porchetto@nexedi.com- revert parallel gadget loading
- minor refactoring on appcache storage creationhttps://lab.nexedi.com/nexedi/erp5/-/commit/40b23070e2f8ee0c76567412916a99f68cb5c66ferp5_forge: bug module domain2019-11-08T14:42:33+01:00Roque Porchettoroque.porchetto@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/93df28d709d07969fb44d876bab19ce9dc7b52c8erp5_crm: new domain in support request list2019-11-08T14:42:33+01:00Roque Porchettoroque.porchetto@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/b381ef8fdf0a1e47b029755c14909f3fcd7bb96aerp5_base: common script to generate domains2019-11-08T14:42:33+01:00Roque Porchettoroque.porchetto@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/dc6dd912b22d55bc291b1f3bb2745aaf708155a8erp5_project: new portal domains, scripts and forms for project management views2019-11-08T14:42:33+01:00Roque Porchettoroque.porchetto@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/86b1843bb19f6aabeda52027c7efde22106460fberp5_web_project_ui: initial commit for project.nexedi.net2019-11-08T14:42:33+01:00Roque Porchettoroque.porchetto@nexedi.com- new skin folder with project quick view form, scripts and gadgets
- front page redirects to custom project module