Commit 00070b7e authored by Christophe Dumez's avatar Christophe Dumez

- OOo import now displays categories as well as properties of the portal type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9099 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 182ee43f
...@@ -73,8 +73,11 @@ ...@@ -73,8 +73,11 @@
property_list = []\n property_list = []\n
\n \n
for portal_type in module.allowedContentTypes():\n for portal_type in module.allowedContentTypes():\n
for property in portal_type.getInstancePropertyMap():\n #for property in portal_type.getInstancePropertyMap():\n
property_string = "%s.%s" % (portal_type.id, property[\'id\'])\n #property_string = "%s.%s" % (portal_type.id, property[\'id\'])\n
#property_list.append(property_string)\n
for property in portal_type.getPropertiesAndCategories():\n
property_string = "%s.%s" % (portal_type.id, property)\n
property_list.append(property_string)\n property_list.append(property_string)\n
\n \n
property_list.sort()\n property_list.sort()\n
...@@ -89,7 +92,9 @@ return [(\'-- Ignore this Property --\', \'\')] + map(lambda x: (x,x), property_ ...@@ -89,7 +92,9 @@ return [(\'-- Ignore this Property --\', \'\')] + map(lambda x: (x,x), property_
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_base/ERP5Site_getModulePortalTypeSortedPropertyList</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>_owner</string> </key>
...@@ -132,7 +137,6 @@ return [(\'-- Ignore this Property --\', \'\')] + map(lambda x: (x,x), property_ ...@@ -132,7 +137,6 @@ return [(\'-- Ignore this Property --\', \'\')] + map(lambda x: (x,x), property_
<string>_getattr_</string> <string>_getattr_</string>
<string>portal_type</string> <string>portal_type</string>
<string>property</string> <string>property</string>
<string>_getitem_</string>
<string>property_string</string> <string>property_string</string>
<string>map</string> <string>map</string>
</tuple> </tuple>
......
...@@ -110,7 +110,9 @@ return listbox_lines\n ...@@ -110,7 +110,9 @@ return listbox_lines\n
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_base/ERP5Site_getSpreadsheetColumnNameList</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>_owner</string> </key>
......
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