Commit 6b118d8e authored by Jérome Perrin's avatar Jérome Perrin

use contentValues which prevents Unauths.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9164 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1f2086db
...@@ -80,16 +80,7 @@ def sortInvoiceTransactionLine(a, b):\n ...@@ -80,16 +80,7 @@ def sortInvoiceTransactionLine(a, b):\n
b_id = sort_dict.get(b.getId(), b.getId())\n b_id = sort_dict.get(b.getId(), b.getId())\n
return cmp(a_id, b_id)\n return cmp(a_id, b_id)\n
\n \n
\n object_list = list(context.contentValues(portal_type=portal_type))\n
object_list = []\n
for obj in context.objectValues() : \n
obj = obj.getObject()\n
if kw.has_key(\'portal_type\') : \n
if obj.getPortalType() in kw[\'portal_type\'] : \n
object_list.append(obj)\n
else : \n
object_list.append(obj)\n
\n
object_list.sort(sortInvoiceTransactionLine)\n object_list.sort(sortInvoiceTransactionLine)\n
return object_list\n return object_list\n
</string> </value> </string> </value>
...@@ -108,7 +99,7 @@ return object_list\n ...@@ -108,7 +99,7 @@ return object_list\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>**kw</string> </value> <value> <string>portal_type=[], **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -128,21 +119,20 @@ return object_list\n ...@@ -128,21 +119,20 @@ return object_list\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>portal_type</string>
<string>kw</string> <string>kw</string>
<string>sort_dict</string> <string>sort_dict</string>
<string>sortInvoiceTransactionLine</string> <string>sortInvoiceTransactionLine</string>
<string>object_list</string> <string>list</string>
<string>_getiter_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>obj</string> <string>object_list</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -154,7 +144,9 @@ return object_list\n ...@@ -154,7 +144,9 @@ return object_list\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<list/>
</tuple>
</value> </value>
</item> </item>
<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