Commit 8b6d1782 authored by Jérome Perrin's avatar Jérome Perrin

style changes (use 2 tabs for indenting)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22627 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 29df2999
...@@ -76,28 +76,28 @@ def destinationSortMethod(a, b):\n ...@@ -76,28 +76,28 @@ def destinationSortMethod(a, b):\n
return 1 # a defines no destination ans loses\n return 1 # a defines no destination ans loses\n
\n \n
def resourcePurchasePriceSortMethod(a, b):\n def resourcePurchasePriceSortMethod(a, b):\n
if "Purchase" in a.getPortalType():\n if "Purchase" in a.getPortalType():\n
if "Purchase" in b.getPortalType():\n if "Purchase" in b.getPortalType():\n
return sourceSortMethod(a, b)\n return sourceSortMethod(a, b)\n
else:\n else:\n
return -1\n return -1\n
else:\n else:\n
if "Purchase" in b.getPortalType():\n if "Purchase" in b.getPortalType():\n
return 1\n return 1\n
else:\n else:\n
return destinationSortMethod(a, b)\n return destinationSortMethod(a, b)\n
\n \n
def resourceSalePriceSortMethod(a, b):\n def resourceSalePriceSortMethod(a, b):\n
if "Sale" in a.getPortalType():\n if "Sale" in a.getPortalType():\n
if "Sale" in b.getPortalType():\n if "Sale" in b.getPortalType():\n
return destinationSortMethod(a, b)\n return destinationSortMethod(a, b)\n
else:\n else:\n
return -1\n return -1\n
else:\n else:\n
if "Sale" in b.getPortalType():\n if "Sale" in b.getPortalType():\n
return 1\n return 1\n
else:\n else:\n
return sourceSortMethod(a, b)\n return sourceSortMethod(a, b)\n
\n \n
try:\n try:\n
explanation = context.getExplanationValue()\n explanation = context.getExplanationValue()\n
...@@ -115,9 +115,9 @@ if explanation is not None:\n ...@@ -115,9 +115,9 @@ if explanation is not None:\n
\n \n
resource = context.getResourceValue()\n resource = context.getResourceValue()\n
if resource is not None:\n if resource is not None:\n
return resource.getPriceCalculationOperandDict(default=default, context=context, **kw)\n return resource.getPriceCalculationOperandDict(\n
else:\n default=default, context=context, **kw)\n
return default\n return default\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -201,6 +201,12 @@ else:\n ...@@ -201,6 +201,12 @@ else:\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Movement_getPriceCalculationOperandDict</string> </value> <value> <string>Movement_getPriceCalculationOperandDict</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
915 916
\ 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