Commit 48f1634d authored by Alexandre Boeglin's avatar Alexandre Boeglin

bugfix : Export Expression text instead of instance.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5507 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0a0905ae
......@@ -1756,11 +1756,15 @@ class PortalTypeRolesTemplateItem(BaseTemplateItem):
for role in type_roles_obj:
type_role_dict = {}
# uniq
for property in ('id', 'title', 'description', 'condition',
for property in ('id', 'title', 'description',
'priority', 'base_category_script'):
prop_value = getattr(role, property)
if prop_value:
type_role_dict[property] = prop_value
# condition
prop_value = getattr(role, 'condition')
if prop_value:
type_role_dict['condition'] = prop_value.text
# multi
for property in ('category', 'base_category'):
prop_value_list = []
......
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