Commit d8d847af authored by Jérome Perrin's avatar Jérome Perrin

initialize cache for memoized functions



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13178 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9046257f
...@@ -127,7 +127,7 @@ def getAccountClass(account_url):\n ...@@ -127,7 +127,7 @@ def getAccountClass(account_url):\n
account_class_cache[account_url] = classe\n account_class_cache[account_url] = classe\n
return classe\n return classe\n
\n \n
origin_id_cache = {}\n origin_id_cache = {None:\'\', \'\':\'\'}\n
def getOriginId(origin_url):\n def getOriginId(origin_url):\n
try:\n try:\n
return origin_id_cache[origin_url]\n return origin_id_cache[origin_url]\n
......
...@@ -96,7 +96,7 @@ def getPaymentModeCodification(payment_mode):\n ...@@ -96,7 +96,7 @@ def getPaymentModeCodification(payment_mode):\n
payment_mode_cache[payment_mode] = category_title\n payment_mode_cache[payment_mode] = category_title\n
return category_title\n return category_title\n
\n \n
origin_id_cache = {}\n origin_id_cache = {None:\'\', \'\':\'\'}\n
def getOriginId(origin_url):\n def getOriginId(origin_url):\n
try:\n try:\n
return origin_id_cache[origin_url]\n return origin_id_cache[origin_url]\n
......
82 83
\ 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