Commit 1963b114 authored by Bartek Górny's avatar Bartek Górny

bugfixes, corrected field label

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12403 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08b7cf3d
...@@ -73,8 +73,8 @@ get related object title list in a security-aware way (without throwing exceptio ...@@ -73,8 +73,8 @@ get related object title list in a security-aware way (without throwing exceptio
if I don\'t have permissions to access the object)\n if I don\'t have permissions to access the object)\n
"""\n """\n
\n \n
ob_list = context.Base_getRelatedObjectValueList(category)\n object_list = context.Base_getRelatedObjectValueList(base_category)\n
title_list = [o.getTitle() for o in ob_list]\n title_list = [o.getTitle() for o in object_list]\n
\n \n
return filter(lambda t:t!=\'\', title_list)\n return filter(lambda t:t!=\'\', title_list)\n
</string> </value> </string> </value>
...@@ -128,8 +128,7 @@ return filter(lambda t:t!=\'\', title_list)\n ...@@ -128,8 +128,7 @@ return filter(lambda t:t!=\'\', title_list)\n
<string>base_category</string> <string>base_category</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>category</string> <string>object_list</string>
<string>ob_list</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
......
...@@ -81,7 +81,7 @@ def getValueIfAvailable(category):\n ...@@ -81,7 +81,7 @@ def getValueIfAvailable(category):\n
ob = context.restrictedTraverse(category, None)\n ob = context.restrictedTraverse(category, None)\n
return ob \n return ob \n
\n \n
ob_list = [getValueIfAvailable(category) for category in category_list]\n object_list = [getValueIfAvailable(category) for category in category_list]\n
return [o for o in object_list if o is not None]\n return [o for o in object_list if o is not None]\n
</string> </value> </string> </value>
</item> </item>
...@@ -141,7 +141,6 @@ return [o for o in object_list if o is not None]\n ...@@ -141,7 +141,6 @@ return [o for o in object_list if o is not None]\n
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>category</string> <string>category</string>
<string>ob_list</string>
<string>object_list</string> <string>object_list</string>
<string>o</string> <string>o</string>
</tuple> </tuple>
......
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Publication State</string> </value> <value> <string>Validation State</string> </value>
</item> </item>
<item> <item>
<key> <string>truncate</string> </key> <key> <string>truncate</string> </key>
......
454 455
\ No newline at end of file \ No newline at end of file
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