From a18c90cd64e1a65846be9be48c1a2288958146a9 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Mon, 8 Aug 2011 20:02:28 +0900 Subject: [PATCH] Extract messages from constraints in ZODB property sheets for POT. --- ...getToBeTranslatedMessageListFromEntireSystemAsPot.xml | 9 +++++++++ bt5/erp5_forge/bt/change_log | 3 +++ bt5/erp5_forge/bt/revision | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/ERP5Site_getToBeTranslatedMessageListFromEntireSystemAsPot.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/ERP5Site_getToBeTranslatedMessageListFromEntireSystemAsPot.xml index d0f44deb9c..762590e30d 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/ERP5Site_getToBeTranslatedMessageListFromEntireSystemAsPot.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/ERP5Site_getToBeTranslatedMessageListFromEntireSystemAsPot.xml @@ -203,6 +203,15 @@ for i in context.portal_types.objectValues():\n for action_title, action_provider_id in context.Base_getActionTitleListFromAllActionProvider(context.getPortalObject()):\n add_message(action_title, action_provider_id)\n \n +#\n +# ZODB Property Sheet\n +#\n +for property_sheet in context.portal_property_sheets.objectValues():\n + for property_ in property_sheet.objectValues():\n + if property_.getId().endswith(\'constraint\'):\n + for key, value in property_.showDict().items():\n + if key.startswith(\'message_\'):\n + add_message(value, portal_url.getRelativeContentURL(property_))\n \n #\n # Output\n diff --git a/bt5/erp5_forge/bt/change_log b/bt5/erp5_forge/bt/change_log index 74ba14f5a1..4699638a2c 100644 --- a/bt5/erp5_forge/bt/change_log +++ b/bt5/erp5_forge/bt/change_log @@ -1,3 +1,6 @@ +2011-08-08 yusei +* Extract messages from constraints in ZODB property sheets for POT. + 2011-04-14 yusei * Remove old unnecessary tales expression from relation string field. diff --git a/bt5/erp5_forge/bt/revision b/bt5/erp5_forge/bt/revision index c21b7b4a7d..f95076e1d6 100644 --- a/bt5/erp5_forge/bt/revision +++ b/bt5/erp5_forge/bt/revision @@ -1 +1 @@ -661 \ No newline at end of file +662 \ No newline at end of file -- 2.30.9