[Erp5-report] r22627 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 23 14:04:21 CEST 2008


Author: jerome
Date: Wed Jul 23 14:04:20 2008
New Revision: 22627

URL: http://svn.erp5.org?rev=22627&view=rev
Log:
style changes (use 2 tabs for indenting)

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_getPriceCalculationOperandDict.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_getPriceCalculationOperandDict.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_getPriceCalculationOperandDict.xml?rev=22627&r1=22626&r2=22627&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_getPriceCalculationOperandDict.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_getPriceCalculationOperandDict.xml Wed Jul 23 14:04:20 2008
@@ -76,28 +76,28 @@
   return 1 # a defines no destination ans loses\n
 \n
 def resourcePurchasePriceSortMethod(a, b):\n
-   if "Purchase" in a.getPortalType():\n
-     if "Purchase" in b.getPortalType():\n
-       return sourceSortMethod(a, b)\n
-     else:\n
-       return -1\n
-   else:\n
-     if "Purchase" in b.getPortalType():\n
-       return 1\n
-     else:\n
-       return destinationSortMethod(a, b)\n
+  if "Purchase" in a.getPortalType():\n
+    if "Purchase" in b.getPortalType():\n
+      return sourceSortMethod(a, b)\n
+    else:\n
+      return -1\n
+  else:\n
+    if "Purchase" in b.getPortalType():\n
+      return 1\n
+    else:\n
+      return destinationSortMethod(a, b)\n
 \n
 def resourceSalePriceSortMethod(a, b):\n
-   if "Sale" in a.getPortalType():\n
-     if "Sale" in b.getPortalType():\n
-       return destinationSortMethod(a, b)\n
-     else:\n
-       return -1\n
-   else:\n
-     if "Sale" in b.getPortalType():\n
-       return 1\n
-     else:\n
-       return sourceSortMethod(a, b)\n
+  if "Sale" in a.getPortalType():\n
+    if "Sale" in b.getPortalType():\n
+      return destinationSortMethod(a, b)\n
+    else:\n
+      return -1\n
+  else:\n
+    if "Sale" in b.getPortalType():\n
+      return 1\n
+    else:\n
+      return sourceSortMethod(a, b)\n
 \n
 try:\n
   explanation = context.getExplanationValue()\n
@@ -115,9 +115,9 @@
 \n
 resource = context.getResourceValue()\n
 if resource is not None:\n
-  return resource.getPriceCalculationOperandDict(default=default, context=context, **kw)\n
-else:\n
-  return default\n
+  return resource.getPriceCalculationOperandDict(\n
+                default=default, context=context, **kw)\n
+return default\n
 </string> </value>
         </item>
         <item>
@@ -202,6 +202,12 @@
             <value> <string>Movement_getPriceCalculationOperandDict</string> </value>
         </item>
         <item>
+            <key> <string>uid</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
             <key> <string>warnings</string> </key>
             <value>
               <tuple/>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=22627&r1=22626&r2=22627&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Wed Jul 23 14:04:20 2008
@@ -1,1 +1,1 @@
-915
+916




More information about the Erp5-report mailing list