Commit 1b2aba22 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid errors in log during anonymous usage.

When form is rendered while being not logged in, what is default way of using
this form, ERP5Site_getAuthenticatedMemberPersonValue returns None, so add
condition which does not log failures.
parent 31b0e26a
......@@ -116,7 +116,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getCareerSubordinationTitle()</string> </value>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getCareerSubordinationTitle()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -125,7 +125,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressCity()</string> </value>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressCity()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -58,7 +58,9 @@
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
......@@ -133,4 +135,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressStreetAddress()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -61,6 +61,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -130,7 +134,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressZipCode()</string> </value>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultAddressZipCode()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -125,7 +125,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultEmailText()</string> </value>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultEmailText()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -116,7 +116,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultTelephoneText()</string> </value>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getDefaultTelephoneText()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -10,6 +10,7 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>default</string>
<string>required</string>
<string>title</string>
</list>
......@@ -53,6 +54,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -80,6 +87,10 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>your_string_field</string> </value>
......@@ -106,4 +117,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getFirstName()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -10,6 +10,7 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>default</string>
<string>required</string>
<string>title</string>
</list>
......@@ -53,6 +54,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -80,6 +87,10 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>your_string_field</string> </value>
......@@ -106,4 +117,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_getAuthenticatedMemberPersonValue() is not None and context.ERP5Site_getAuthenticatedMemberPersonValue().getLastName()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
366
\ No newline at end of file
367
\ 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