Commit dfee694f authored by Arnaud Fontaine's avatar Arnaud Fontaine

Call the proper setter when adding a Extension Component to a Business Template (TestTemplateItem).

parent e10c5d6d
...@@ -6884,7 +6884,8 @@ class TestDocumentTemplateItem(BusinessTemplateMixin): ...@@ -6884,7 +6884,8 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
document_data=self.document_data) document_data=self.document_data)
def stepAddZodbDocumentToBusinessTemplate(self, sequence=None, **kw): def stepAddZodbDocumentToBusinessTemplate(self, sequence=None, **kw):
sequence['current_bt'].setTemplateDocumentIdList(sequence['document_id']) getattr(sequence['current_bt'], self.set_template_id_method_name)(
sequence['document_id'])
def stepRemoveZodbDocument(self, sequence=None, **kw): def stepRemoveZodbDocument(self, sequence=None, **kw):
self.getPortalObject().portal_components.deleteContent( self.getPortalObject().portal_components.deleteContent(
......
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