Commit 594b0baa authored by Romain Courteaud's avatar Romain Courteaud

Migrate constraint after Email modification.

url_string is not more the default email property. coordinate_text can also be used.
parent ec2ea8ed
......@@ -30,7 +30,7 @@
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
<value> <string>3</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......
......@@ -2,7 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="String Attribute Match Constraint" module="erp5.portal_type"/>
<global name="TALES Constraint" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
......@@ -12,37 +12,12 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>message_property_not_set</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>constraint_property</string> </key>
<value>
<tuple>
<string>url_string</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
......@@ -50,24 +25,20 @@
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>email_not_empty_constraint</string> </value>
</item>
<item>
<key> <string>message_attribute_match</string> </key>
<value> <string>Email must be defined</string> </value>
<key> <string>expression</string> </key>
<value> <string>python: (object.asText() != "") and (not object.asText().startswith(" "))</string> </value>
</item>
<item>
<key> <string>message_no_such_property</string> </key>
<value> <string>Email must be defined</string> </value>
<key> <string>id</string> </key>
<value> <string>email_not_empty_constraint</string> </value>
</item>
<item>
<key> <string>message_property_not_set</string> </key>
<key> <string>message_expression_false</string> </key>
<value> <string>Email must be defined</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>String Attribute Match Constraint</string> </value>
<value> <string>TALES Constraint</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -21,9 +21,7 @@
<item>
<key> <string>constraint_property</string> </key>
<value>
<tuple>
<string>url_string</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......@@ -34,7 +32,7 @@
</item>
<item>
<key> <string>filter_parameter</string> </key>
<value> <string>python: {\'portal_type\': object.getPortalType(), \'url_string\': object.getUrlString(), \'parent_portal_type\': object.getParentValue().getPortalType()}</string> </value>
<value> <string>python: {\'portal_type\': object.getPortalType(), \'url_string\': object.asText(), \'parent_portal_type\': object.getParentValue().getPortalType()}</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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