Commit b74aa36a authored by Alexandre Boeglin's avatar Alexandre Boeglin

If CMF provides it, set the default sorting of the ERP5 portal contents by

'id', ascending.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8567 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc64676f
...@@ -1162,6 +1162,9 @@ class ERP5Generator(PortalGenerator): ...@@ -1162,6 +1162,9 @@ class ERP5Generator(PortalGenerator):
def setup(self, p, create_userfolder, **kw): def setup(self, p, create_userfolder, **kw):
update = kw.get('update', 0) update = kw.get('update', 0)
if getattr(p, 'setDefaultSorting', None) is not None:
p.setDefaultSorting('id', 0)
self.setupTools(p, **kw) self.setupTools(p, **kw)
if not p.hasObject('MailHost'): if not p.hasObject('MailHost'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment