Commit 8893e2b7 authored by Aurel's avatar Aurel

code improvement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45444 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a3c0448c
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>for line in context.contentValues(filter={\'portal_type\':portal_type}):\n <value> <string>for line in context.objectValues(portal_type=portal_type):\n
if line.getResourceId() == resource_id:\n if line.getResourceId() == resource_id:\n
return line\n return line\n
return None\n return None\n
......
...@@ -535,20 +535,26 @@ ...@@ -535,20 +535,26 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.getSourcePaymentValue().getInternalBankAccountNumber()</string> </value> <value> <string>python: (here.getSourcePaymentValue() is not None) and here.getSourcePaymentValue().getInternalBankAccountNumber() or \'\'</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
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