Commit c2ef4e57 authored by Fabien Morin's avatar Fabien Morin

fix some mistakes in ApparelModel scripts

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32066 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f9f68eb
......@@ -275,7 +275,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.ApparelModel_getPrototype() is not None and here.ApparelModel_getPrototype().getDestinationReference() or here.ApparelModel_getPrototype().getTitle()</string> </value>
<value> <string>python: here.ApparelModel_getPrototype() is not None and here.ApparelModel_getPrototype().getDestinationReference() or \'\'</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -105,8 +105,8 @@ def getShapeMainImagePath():\n
apparel_shape = context.getSpecialiseValue(portal_type=\'Apparel Shape\')\n
if apparel_shape:\n
technical_drawing_list = apparel_shape.contentValues(portal_type=\'Apparel Technical Drawing\')\n
if len(technical_drawing_list):\n
return technical_drawing_list[0].absolute_url()\n
if len(technical_drawing_list):\n
return technical_drawing_list[0].absolute_url()\n
return None\n
\n
def getPrototype():\n
......@@ -126,7 +126,7 @@ data_dict = {\n
\'morphology_title\': getMorphologyTitle() or \'\',\n
\'shape_main_image_path\': getShapeMainImagePath() or \'\',\n
\'prototype_title\': getPrototype() is not None and \\\n
getPrototype().getDestinationReference() or getPrototype().getTitle(),\n
getPrototype().getDestinationReference() or \'\',\n
\'prototype_image_path\': getPrototype() is not None and getPrototype().absolute_url() or \'\',\n
\'preferred_organisation_image_path\': getPreferredOrganisation() is not None\\\n
and getPreferredOrganisation().getDefaultImageAbsoluteUrl() or \'\',\n
......
250
\ No newline at end of file
251
\ 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