Commit 0eaf8920 authored by Jérome Perrin's avatar Jérome Perrin

call _aq_reset after adding a category to a portal type


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18734 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f72c3f44
......@@ -1056,9 +1056,11 @@ class TestPropertySheet:
# add destination base category to Person TI
person_ti = self.getTypesTool().getTypeInfo('Person')
if 'destination' not in person_ti.base_category_list:
person_ti.base_category_list = tuple(list(
person_ti.base_category_list = tuple(list(
self.getTypesTool().getTypeInfo('Person').base_category_list) +
['destination', ])
_aq_reset()
person = self.getPersonModule().newContent(id='1', portal_type='Person')
other_pers = self.getPersonModule().newContent(id='2', portal_type='Person')
other_pers_title = 'This is the title we should acquire'
......
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