Commit 27d96534 authored by Kevin Deldycke's avatar Kevin Deldycke

* Add parameter to AccountModule_getAvailableGapList to add an empty item in the generated list.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4839 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 87682053
...@@ -82,28 +82,33 @@ for country in countries : \n ...@@ -82,28 +82,33 @@ for country in countries : \n
\n \n
results += [(title, path)]\n results += [(title, path)]\n
\n \n
if include_empty_item == 1:\n
results = [(\'\', \'\')] + results\n
\n
return results\n return results\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5pAQAAAGMBAAAACgAA <value> <string encoding="base64">YwAAAAAAAAAAAwAAAEAAAABzEwAAAGQBAGQCAGQDAIQCAFoAAGQAAFMoBAAAAE5pAQAAAGkAAAAA
ABAAAABDAAAAc+QAAABnAAB9AQB0AQB0AQB0AQB0AgBkAQCDAgBkAgCDAgBkAwCDAgCDAAB9BAB4 YwIAAAALAAAAEAAAAEMAAABzCAEAAGcAAH0CAHQBAHQBAHQBAHQCAGQBAIMCAGQCAIMCAGQDAIMC
rwB0BAB8BACDAQBEXaEAfQYAeJgAdAQAdAEAfAYAZAMAgwIAgwAAgwEARF1+AH0HAHQBAHQBAHwH AIMAAH0FAHivAHQEAHwFAIMBAERdoQB9BwB4mAB0BAB0AQB8BwBkAwCDAgCDAACDAQBEXX4AfQgA
AGQEAIMCAGQFAIMCAIMAAGQGABd0AQB8BwBkBQCDAgCDAAAXfQgAdAEAfAcAZAcAgwIAgwAAfQkA dAEAdAEAfAgAZAQAgwIAZAUAgwIAgwAAZAYAF3QBAHwIAGQFAIMCAIMAABd9CQB0AQB8CABkBwCD
fAAADG8cAAF0AQB8CQBkCACDAgBkCQBkCgCDAgB9CQBuAQABfAEAfAgAfAkAZgIAZwEAN30BAHFW AgCDAAB9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AGdhcHMFAAAA bXB0eV9pdGVtKAsAAABzEwAAAGluY2x1ZGVfZ2FwX2luX3BhdGhzEgAAAGluY2x1ZGVfZW1wdHlf
dGl0bGVzBAAAAHBhdGgoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzIQAAAEFjY291bnRN aXRlbXMHAAAAcmVzdWx0c3MJAAAAX2dldGF0dHJfcwcAAABjb250ZXh0cwkAAABjb3VudHJpZXNz
b2R1bGVfZ2V0QXZhaWxhYmxlR2FwTGlzdAEAAABzGAAAAAAFBgEkAQ0ABgEZAAYBLwESAQgBHAIb CQAAAF9nZXRpdGVyX3MHAAAAY291bnRyeXMDAAAAZ2FwcwUAAAB0aXRsZXMEAAAAcGF0aCgAAAAA
AigBAAAAcyEAAABBY2NvdW50TW9kdWxlX2dldEF2YWlsYWJsZUdhcExpc3QoAQAAAHMhAAAAQWNj KAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMhAAAAQWNjb3VudE1vZHVsZV9nZXRBdmFpbGFibGVH
b3VudE1vZHVsZV9nZXRBdmFpbGFibGVHYXBMaXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRo YXBMaXN0AQAAAHMcAAAAAAUGASQBDQAGARkABgEvARIBCAEcAhsCDQEXAigBAAAAcyEAAABBY2Nv
b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value> dW50TW9kdWxlX2dldEF2YWlsYWJsZUdhcExpc3QoAQAAAHMhAAAAQWNjb3VudE1vZHVsZV9nZXRB
dmFpbGFibGVHYXBMaXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9kdWxl
PgEAAABzAAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -111,7 +116,7 @@ b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value> ...@@ -111,7 +116,7 @@ b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>include_gap_in_path = 1 </string> </value> <value> <string>include_gap_in_path=1, include_empty_item=0</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -131,13 +136,14 @@ b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value> ...@@ -131,13 +136,14 @@ b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>include_gap_in_path</string> <string>include_gap_in_path</string>
<string>include_empty_item</string>
<string>results</string> <string>results</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
...@@ -160,6 +166,7 @@ b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value> ...@@ -160,6 +166,7 @@ b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
<value> <value>
<tuple> <tuple>
<int>1</int> <int>1</int>
<int>0</int>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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