[Erp5-report] r32066 fabien - in /erp5/trunk/bt5/erp5_apparel: SkinTemplateItem/portal_skin...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 28 16:38:51 CET 2010


Author: fabien
Date: Thu Jan 28 16:38:49 2010
New Revision: 32066

URL: http://svn.erp5.org?rev=32066&view=rev
Log:
fix some mistakes in ApparelModel scripts

Modified:
    erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_PrintoutFormView/prototype_title.xml
    erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_getDataDict.xml
    erp5/trunk/bt5/erp5_apparel/bt/revision

Modified: erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_PrintoutFormView/prototype_title.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_PrintoutFormView/prototype_title.xml?rev=32066&r1=32065&r2=32066&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_PrintoutFormView/prototype_title.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_PrintoutFormView/prototype_title.xml [utf8] Thu Jan 28 16:38:49 2010
@@ -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>

Modified: erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_getDataDict.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_getDataDict.xml?rev=32066&r1=32065&r2=32066&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_getDataDict.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelModel_getDataDict.xml [utf8] Thu Jan 28 16:38:49 2010
@@ -105,8 +105,8 @@
   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 @@
   \'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

Modified: erp5/trunk/bt5/erp5_apparel/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_apparel/bt/revision?rev=32066&r1=32065&r2=32066&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_apparel/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_apparel/bt/revision [utf8] Thu Jan 28 16:38:49 2010
@@ -1,1 +1,1 @@
-250
+251




More information about the Erp5-report mailing list