Commit cd8201b8 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Minor fixes (removed vim statement, added missing quotes to key in dict)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14673 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e004ba95
...@@ -94,7 +94,7 @@ for k, v in information.items(): \n ...@@ -94,7 +94,7 @@ for k, v in information.items(): \n
elif key == \'author\':\n elif key == \'author\':\n
p = context.portal_catalog.getResultValue(title = v)\n p = context.portal_catalog.getResultValue(title = v)\n
if p is not None:\n if p is not None:\n
result[contributor] = p.getRelativeUrl()\n result[\'contributor\'] = p.getRelativeUrl()\n
elif key == \'keywords\':\n elif key == \'keywords\':\n
result[\'subject_list\'] = v.split()\n result[\'subject_list\'] = v.split()\n
\n \n
...@@ -180,7 +180,6 @@ return result\n ...@@ -180,7 +180,6 @@ return result\n
<string>_write_</string> <string>_write_</string>
<string>p</string> <string>p</string>
<string>None</string> <string>None</string>
<string>contributor</string>
<string>title</string> <string>title</string>
</tuple> </tuple>
</value> </value>
......
...@@ -114,9 +114,6 @@ for base_category in item_list:\n ...@@ -114,9 +114,6 @@ for base_category in item_list:\n
sub_field_dict[base_category] = sub_field_property_dict\n sub_field_dict[base_category] = sub_field_property_dict\n
\n \n
return sub_field_dict.values()\n return sub_field_dict.values()\n
\n
\n
# vim: syntax=python shiftwidth=2\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
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