Commit 280d8611 authored by Nicolas Dumazet's avatar Nicolas Dumazet

weed out _aq_reset


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42856 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea9c7c0d
...@@ -32,7 +32,6 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase ...@@ -32,7 +32,6 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Testing.ZopeTestCase.PortalTestCase import PortalTestCase from Testing.ZopeTestCase.PortalTestCase import PortalTestCase
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager from AccessControl.SecurityManagement import noSecurityManager
from Products.ERP5Type.Base import _aq_reset
try: try:
from transaction import get as get_transaction from transaction import get as get_transaction
...@@ -978,8 +977,12 @@ class TestCMFCategory(ERP5TypeTestCase): ...@@ -978,8 +977,12 @@ class TestCMFCategory(ERP5TypeTestCase):
self.portal.portal_categories.manage_delObjects(['region']) self.portal.portal_categories.manage_delObjects(['region'])
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
#call _aq_reset to regenerate Accessors # XXX should be done in an Interaction Workflow,
_aq_reset() # with the guarantee that it's only ever called once per transaction,
# that is, if several categories get changed in the same transaction,
# call it only ONCE (that is not the case with the current
# 'once per transaction', which is actually 'once per transaction per object'
self.portal.portal_types.resetDynamicDocuments()
obj = self.portal.person_module.newContent(portal_type='Person') obj = self.portal.person_module.newContent(portal_type='Person')
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
......
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