From 5f8c98b2ee361a91ef1a9453533767473091a955 Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel <sebastian.kreisel@nexedi.com> Date: Thu, 30 Nov 2017 13:57:49 +0100 Subject: [PATCH] erp5_web: Update jio view date fields to avoid JSON date parsing error --- .../my_creation_date.xml | 17 ++++++++++++++++- .../my_modification_date.xml | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml index eab03444fc..9b6a3d6d12 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml @@ -122,7 +122,9 @@ </item> <item> <key> <string>default</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>description</string> </key> @@ -269,4 +271,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: getattr(here.getStartDate(), \\\'rfc822\\\', lambda x=None: \\\'\\\')()</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml index 0f4df1aba7..ae944993a1 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml @@ -122,7 +122,9 @@ </item> <item> <key> <string>default</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>description</string> </key> @@ -269,4 +271,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: getattr(here.getStartDate(), \\\'rfc822\\\', lambda x=None: \\\'\\\')()</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> -- 2.30.9