Commit b7035c4e authored by Sebastien Robin's avatar Sebastien Robin

portal_components might not exist yet

parent 906880fe
...@@ -485,7 +485,11 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -485,7 +485,11 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
# Make sure that reset is not performed when creating a new site # Make sure that reset is not performed when creating a new site
if not getattr(self, '_v_bootstrapping', False): if not getattr(self, '_v_bootstrapping', False):
try:
self.portal_components.resetOnceAtTransactionBoundary() self.portal_components.resetOnceAtTransactionBoundary()
except AttributeError:
# This should only happen before erp5_core is installed
pass
version_priority_list = property(getVersionPriorityList, version_priority_list = property(getVersionPriorityList,
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