Commit 1d32e2a4 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a missing check in checkInstance.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@693 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 52fdb64d
......@@ -379,6 +379,8 @@ Une ligne tarifaire."""
def checkInstance(self):
if not hasattr(self, '_object_archive'):
self._object_archive = PersistentMapping()
if not hasattr(self, '_portal_type_archive'):
self._portal_type_archive = PersistentMapping()
if not hasattr(self, '_action_archive'):
self._action_archive = PersistentMapping()
if not hasattr(self, '_property_archive'):
......@@ -512,6 +514,7 @@ Une ligne tarifaire."""
self.addObjectTemplateItem(id, 'portal_workflow')
# Copy skins
for id in self.getTemplateSkinIdList():
LOG('build', 0, 'id = %s' % repr(id))
self.addObjectTemplateItem(id, 'portal_skins')
# Copy categories
for id in self.getTemplateBaseCategoryList():
......
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