Commit 3b811f61 authored by Kevin Deldycke's avatar Kevin Deldycke

Updated to support wrong values.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6385 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e779304a
...@@ -66,9 +66,16 @@ ...@@ -66,9 +66,16 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>account_uid = brain.account_uid\n <value> <string>if None not in (brain, selection):\n
account = context.portal_catalog.getObject(account_uid)\n try:\n
return account.Account_getGapId()\n account_uid = brain.account_uid\n
except AttributeError:\n
account_uid = None\n
if account_uid != None:\n
account = context.portal_catalog.getObject(account_uid)\n
if account != None:\n
return account.Account_getGapId()\n
return None\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -111,8 +118,10 @@ return account.Account_getGapId()\n ...@@ -111,8 +118,10 @@ return account.Account_getGapId()\n
<tuple> <tuple>
<string>brain</string> <string>brain</string>
<string>selection</string> <string>selection</string>
<string>None</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>account_uid</string> <string>account_uid</string>
<string>AttributeError</string>
<string>context</string> <string>context</string>
<string>account</string> <string>account</string>
</tuple> </tuple>
......
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