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 @@ ...@@ -80,7 +80,15 @@
Type-based.\n Type-based.\n
"""\n """\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> </string> </value>
</item> </item>
<item> <item>
...@@ -131,6 +139,12 @@ return property_dict\n ...@@ -131,6 +139,12 @@ return property_dict\n
<tuple> <tuple>
<string>file_name</string> <string>file_name</string>
<string>property_dict</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> </tuple>
</value> </value>
</item> </item>
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<string>my_version</string> <string>my_version</string>
<string>my_language</string> <string>my_language</string>
<string>my_int_index</string> <string>my_int_index</string>
<string>url_text</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </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