Commit 9743b5fe authored by Arnaud Fontaine's avatar Arnaud Fontaine

Cosmetic.

parent ca82437d
...@@ -446,12 +446,12 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -446,12 +446,12 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVersionPriorityList') 'getVersionPriorityList')
def getVersionPriorityList(self): def getVersionPriorityList(self):
"""
Return the Component version priorities defined on the site
"""
# Whatever happens, a version must always be returned otherwise it may # Whatever happens, a version must always be returned otherwise it may
# render the site unusable when all Products will have been migrated # render the site unusable when all Products will have been migrated
if not self._version_priority_list: return self._version_priority_list or ('erp5',)
return ('erp5',)
return self._version_priority_list
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'setVersionPriorityList' ) 'setVersionPriorityList' )
......
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