Commit ac15ab56 authored by Christophe Dumez's avatar Christophe Dumez

- Added OOo import support for subobjects like email, telephone, mobile..


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9112 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76003bf4
......@@ -314,8 +314,15 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase, Translation
ps_property = getattr(base, '_properties', None)
if type(ps_property) in (type(()), type([])):
for prop in ps_property:
if prop['id'] not in current_list:
current_list.append(prop['id'])
if prop['type'] != 'content':
if prop['id'] not in current_list:
current_list.append(prop['id'])
else:
suffix_list = prop['acquired_property_id']
for suffix in suffix_list:
full_id = prop['id']+'_'+suffix
if full_id not in current_list:
current_list.append(full_id)
ps_property = getattr(base, '_categories', None)
if type(ps_property) in (type(()), type([])):
cat_dict_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