Commit c971559c authored by Nicolas Delaby's avatar Nicolas Delaby

Be consistent with legacy format


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33852 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89cf316e
......@@ -2021,8 +2021,9 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
key_list = self._objects.keys()
key_list.sort()
for key in key_list:
id_value = key.replace('%s/' % self.class_property, '')
allowed_item_list = sorted(self._objects[key])
xml_data += '\n <portal_type id="%s">' %(key,)
xml_data += '\n <portal_type id="%s">' % (id_value)
for allowed_item in allowed_item_list:
xml_data += '\n <item>%s</item>' %(allowed_item,)
xml_data += '\n </portal_type>'
......
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