Fix name variables


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33327 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b01376b
...@@ -1491,14 +1491,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -1491,14 +1491,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
""" """
Remove catalog method into the business template Remove catalog method into the business template
""" """
bt = sequence.get('current_bt', None) business_template = sequence.get('current_bt', None)
self.failUnless(bt is not None) self.assertTrue(business_template is not None)
method_id = sequence.get('zsql_method_id', None) method_id = sequence.get('zsql_method_id', None)
current_methods = list(bt.getTemplateCatalogMethodIdList()) current_method_list = list(business_template.\
pc = self.getCatalogTool() getTemplateCatalogMethodIdList())
catalog_id = pc.getSQLCatalog().id catalog_tool = self.getCatalogTool()
current_methods.remove(catalog_id+'/'+method_id) catalog_id = catalog_tool.getSQLCatalog().id
bt.edit(template_catalog_method_id_list=current_methods) current_method_list.remove(catalog_id+'/'+method_id)
business_template.edit(template_catalog_method_id_list=current_method_list)
def stepAddNewCatalogMethodToBusinessTemplate(self, sequence=None, sequence_list=None, **kw): def stepAddNewCatalogMethodToBusinessTemplate(self, sequence=None, sequence_list=None, **kw):
""" """
......
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