Commit 51400850 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Set end datatime in the birthday field so that we cannot input the future date as the birthday.

parent 13f13eb8
...@@ -10,8 +10,17 @@ ...@@ -10,8 +10,17 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>title</string>
<string>description</string> <string>description</string>
<string>end_datetime</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>delegated_message_list</string> </key>
<value>
<list>
<string>datetime_out_of_range</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -24,8 +33,8 @@ ...@@ -24,8 +33,8 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>external_validator_failed</string> </key> <key> <string>datetime_out_of_range</string> </key>
<value> <string>The input failed the external validator.</string> </value> <value> <string>The birthday should be in the past.</string> </value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
...@@ -53,6 +62,16 @@ ...@@ -53,6 +62,16 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>end_datetime</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -65,6 +84,10 @@ ...@@ -65,6 +84,10 @@
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -76,6 +99,12 @@ ...@@ -76,6 +99,12 @@
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>The date of birth for the person.</string> </value> <value> <string>The date of birth for the person.</string> </value>
</item> </item>
<item>
<key> <string>end_datetime</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_date</string> </value> <value> <string>my_date</string> </value>
...@@ -98,4 +127,17 @@ ...@@ -98,4 +127,17 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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:DateTime()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
999 1000
\ No newline at end of file \ 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