Commit 80b82f08 authored by Arnaud Fontaine's avatar Arnaud Fontaine

When installing base categories for a bt, only re-generate accessors

at the end of the transaction to avoid useless generation of accessors
and remove useless _aq_reset() call after adding a Base Category



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43010 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 680d8675
...@@ -70,5 +70,4 @@ class BaseCategory(CMFBaseCategory, XMLObject): ...@@ -70,5 +70,4 @@ class BaseCategory(CMFBaseCategory, XMLObject):
""" """
Reset Accessors Reset Accessors
""" """
_aq_reset()
CMFBaseCategory.manage_afterAdd(self, item, container) CMFBaseCategory.manage_afterAdd(self, item, container)
...@@ -1567,7 +1567,7 @@ class CategoryTemplateItem(ObjectTemplateItem): ...@@ -1567,7 +1567,7 @@ class CategoryTemplateItem(ObjectTemplateItem):
def afterInstall(self): def afterInstall(self):
if self._installed_new_category: if self._installed_new_category:
# reset accessors if we installed a new category # reset accessors if we installed a new category
_aq_reset() self.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
class SkinTemplateItem(ObjectTemplateItem): class SkinTemplateItem(ObjectTemplateItem):
......
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