Commit 1f1774da authored by Jean-Paul Smets's avatar Jean-Paul Smets

Display url of documents. Better support of property detection from filename....

Display url of documents. Better support of property detection from filename. embed transition in workflow now does not go to embedded for documents in contribution tool.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13487 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ccaa7159
......@@ -80,7 +80,15 @@
Type-based.\n
"""\n
\n
return property_dict\n
new_dict = {}\n
\n
for k, v in property_dict.items():\n
if v:\n
if k == \'language\':\n
v = v.lower()\n
new_dict[k] = v\n
\n
return new_dict\n
</string> </value>
</item>
<item>
......@@ -131,6 +139,12 @@ return property_dict\n
<tuple>
<string>file_name</string>
<string>property_dict</string>
<string>new_dict</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>k</string>
<string>v</string>
<string>_write_</string>
</tuple>
</value>
</item>
......
......@@ -86,6 +86,7 @@
<string>my_version</string>
<string>my_language</string>
<string>my_int_index</string>
<string>url_text</string>
</list>
</value>
</item>
......
......@@ -102,7 +102,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:here.getDefaultModuleId(here.getPortalType()) != here.getParentValue().getId()</string> </value>
<value> <string>python:here.getParentValue().getId() != \'portal_contributions\' and here.getDefaultModuleId(here.getPortalType()) != here.getParentValue().getId()</string> </value>
</item>
</dictionary>
</pickle>
......
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