Commit e831ef4d authored by Lucas Carvalho's avatar Lucas Carvalho

Use iter build-in function to iterate the list of tuples.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45071 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f5016ac
...@@ -57,7 +57,7 @@ class ServiceConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -57,7 +57,7 @@ class ServiceConfiguratorItem(ConfiguratorItemMixin, XMLObject):
def build(self, business_configuration): def build(self, business_configuration):
portal = self.getPortalObject() portal = self.getPortalObject()
for service_id, service_title in self.getConfigurationList(): for service_id, service_title in iter(self.getConfigurationListList()):
document = getattr(portal.service_module, service_id, None) document = getattr(portal.service_module, service_id, None)
if document is None: if document is None:
document = portal.service_module.newContent(portal_type='Service', document = portal.service_module.newContent(portal_type='Service',
......
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