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 @@ ...@@ -30,7 +30,7 @@
</item> </item>
<item> <item>
<key> <string>last_id</string> </key> <key> <string>last_id</string> </key>
<value> <string>2</string> </value> <value> <string>3</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<global name="String Attribute Match Constraint" module="erp5.portal_type"/> <global name="TALES Constraint" module="erp5.portal_type"/>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -12,37 +12,12 @@ ...@@ -12,37 +12,12 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </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> <item>
<key> <string>_range_criterion</string> </key> <key> <string>_range_criterion</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>constraint_property</string> </key>
<value>
<tuple>
<string>url_string</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <value>
...@@ -50,24 +25,20 @@ ...@@ -50,24 +25,20 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>expression</string> </key>
<value> <string>email_not_empty_constraint</string> </value> <value> <string>python: (object.asText() != "") and (not object.asText().startswith(" "))</string> </value>
</item> </item>
<item> <item>
<key> <string>message_attribute_match</string> </key> <key> <string>id</string> </key>
<value> <string>Email must be defined</string> </value> <value> <string>email_not_empty_constraint</string> </value>
</item>
<item>
<key> <string>message_no_such_property</string> </key>
<value> <string>Email must be defined</string> </value>
</item> </item>
<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> <value> <string>Email must be defined</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>String Attribute Match Constraint</string> </value> <value> <string>TALES Constraint</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -21,9 +21,7 @@ ...@@ -21,9 +21,7 @@
<item> <item>
<key> <string>constraint_property</string> </key> <key> <string>constraint_property</string> </key>
<value> <value>
<tuple> <tuple/>
<string>url_string</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -34,7 +32,7 @@ ...@@ -34,7 +32,7 @@
</item> </item>
<item> <item>
<key> <string>filter_parameter</string> </key> <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>
<item> <item>
<key> <string>id</string> </key> <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