Commit cde316f5 authored by Sebastien Robin's avatar Sebastien Robin

use tales expressions


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1966 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20f2f4ea
...@@ -113,7 +113,7 @@ class TestCMFCategory(ERP5TypeTestCase): ...@@ -113,7 +113,7 @@ class TestCMFCategory(ERP5TypeTestCase):
if not hasattr(portal_categories, bc): if not hasattr(portal_categories, bc):
addBaseCategory(portal_categories, bc) addBaseCategory(portal_categories, bc)
portal_categories[bc].setAcquisitionBaseCategoryList(('subordination','parent')) portal_categories[bc].setAcquisitionBaseCategoryList(('subordination','parent'))
portal_categories[bc].setAcquisitionPortalTypeList(['Address', 'Organisation', 'Person']) portal_categories[bc].setAcquisitionPortalTypeList("python: ['Address', 'Organisation', 'Person']")
portal_categories[bc].setAcquisitionMaskValue(1) portal_categories[bc].setAcquisitionMaskValue(1)
portal_categories[bc].setAcquisitionCopyValue(0) portal_categories[bc].setAcquisitionCopyValue(0)
portal_categories[bc].setAcquisitionAppendValue(0) portal_categories[bc].setAcquisitionAppendValue(0)
...@@ -121,7 +121,7 @@ class TestCMFCategory(ERP5TypeTestCase): ...@@ -121,7 +121,7 @@ class TestCMFCategory(ERP5TypeTestCase):
for bc in ('subordination', ): for bc in ('subordination', ):
if not hasattr(portal_categories, bc): if not hasattr(portal_categories, bc):
addBaseCategory(portal_categories, bc) addBaseCategory(portal_categories, bc)
portal_categories[bc].setAcquisitionPortalTypeList(['Career', 'Organisation']) portal_categories[bc].setAcquisitionPortalTypeList("python: ['Career', 'Organisation']")
portal_categories[bc].setAcquisitionMaskValue(0) portal_categories[bc].setAcquisitionMaskValue(0)
portal_categories[bc].setAcquisitionCopyValue(0) portal_categories[bc].setAcquisitionCopyValue(0)
portal_categories[bc].setAcquisitionAppendValue(0) portal_categories[bc].setAcquisitionAppendValue(0)
......
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