From b476b790e4a65574711708578541116562efadae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Tue, 18 Mar 2008 13:49:46 +0000 Subject: [PATCH] 2008-03-18 shufla * introduced erp5_l10n_pl_PL skin for region specific scripts - script which was removed from erp5_accounting_l10n_pl while its cleanup re-introduced (GroupPresencePeriod_setPolishHolidayExceptions) - update to new Business Template format git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19990 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_l10n_pl_PL.xml | 35 ++++ ...sencePeriod_setPolishHolidayExceptions.xml | 170 ++++++++++++++++++ bt5/erp5_l10n_pl_PL/bt/change_log | 3 + bt5/erp5_l10n_pl_PL/bt/comment | 0 bt5/erp5_l10n_pl_PL/bt/license | 2 +- bt5/erp5_l10n_pl_PL/bt/maintainer_list | 2 + bt5/erp5_l10n_pl_PL/bt/revision | 2 +- .../bt/template_catalog_datetime_key_list | 0 .../bt/template_catalog_scriptable_key_list | 0 bt5/erp5_l10n_pl_PL/bt/template_skin_id_list | 1 + bt5/erp5_l10n_pl_PL/bt/template_tool_id_list | 0 11 files changed, 213 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL.xml create mode 100644 bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL/GroupPresencePeriod_setPolishHolidayExceptions.xml create mode 100644 bt5/erp5_l10n_pl_PL/bt/comment create mode 100644 bt5/erp5_l10n_pl_PL/bt/template_catalog_datetime_key_list create mode 100644 bt5/erp5_l10n_pl_PL/bt/template_catalog_scriptable_key_list create mode 100644 bt5/erp5_l10n_pl_PL/bt/template_tool_id_list diff --git a/bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL.xml b/bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL.xml new file mode 100644 index 0000000000..7e9e9eea75 --- /dev/null +++ b/bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Folder" module="OFS.Folder"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>erp5_l10n_pl_PL</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL/GroupPresencePeriod_setPolishHolidayExceptions.xml b/bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL/GroupPresencePeriod_setPolishHolidayExceptions.xml new file mode 100644 index 0000000000..1a345bba55 --- /dev/null +++ b/bt5/erp5_l10n_pl_PL/SkinTemplateItem/portal_skins/erp5_l10n_pl_PL/GroupPresencePeriod_setPolishHolidayExceptions.xml @@ -0,0 +1,170 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>"""\n + This script sets all standard (non-movable) holidays for polish calendar\n + on context Group Calendar Period.\n + Year defaults to current year.\n +"""\n +\n +part_holiday_list = [\'01-01\',\'05-01\',\'05-03\',\'08-15\',\'11-01\',\'11-11\',\'12-25\',\'12-26\']\n +holiday_list = [\'-\'.join((str(year),holiday)) for holiday in part_holiday_list]\n +\n +for day in holiday_list:\n + holiday = DateTime(day)\n + context.newContent(portal_type = \'Calendar Exception\',\n + exception_date = holiday)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>year = DateTime().year()</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>year</string> + <string>part_holiday_list</string> + <string>append</string> + <string>$append0</string> + <string>_getiter_</string> + <string>holiday</string> + <string>_getattr_</string> + <string>str</string> + <string>holiday_list</string> + <string>day</string> + <string>DateTime</string> + <string>context</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <tuple> + <int>2008</int> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>GroupPresencePeriod_setPolishHolidayExceptions</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_l10n_pl_PL/bt/change_log b/bt5/erp5_l10n_pl_PL/bt/change_log index d3843616a4..dcbcf6be4b 100644 --- a/bt5/erp5_l10n_pl_PL/bt/change_log +++ b/bt5/erp5_l10n_pl_PL/bt/change_log @@ -1,2 +1,5 @@ +2008-03-18 shufla +* introduced erp5_l10n_pl_PL skin for region specific scripts + 20060831 shufla added translation, some cleanups 20060727 shufla many changes, updates and cleans \ No newline at end of file diff --git a/bt5/erp5_l10n_pl_PL/bt/comment b/bt5/erp5_l10n_pl_PL/bt/comment new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_l10n_pl_PL/bt/license b/bt5/erp5_l10n_pl_PL/bt/license index 505faa142b..3a3e12bcad 100644 --- a/bt5/erp5_l10n_pl_PL/bt/license +++ b/bt5/erp5_l10n_pl_PL/bt/license @@ -1 +1 @@ -GPL +GPL \ No newline at end of file diff --git a/bt5/erp5_l10n_pl_PL/bt/maintainer_list b/bt5/erp5_l10n_pl_PL/bt/maintainer_list index e69de29bb2..f54763a54f 100644 --- a/bt5/erp5_l10n_pl_PL/bt/maintainer_list +++ b/bt5/erp5_l10n_pl_PL/bt/maintainer_list @@ -0,0 +1,2 @@ +luke +bartek \ No newline at end of file diff --git a/bt5/erp5_l10n_pl_PL/bt/revision b/bt5/erp5_l10n_pl_PL/bt/revision index 209e3ef4b6..8fdd954df9 100644 --- a/bt5/erp5_l10n_pl_PL/bt/revision +++ b/bt5/erp5_l10n_pl_PL/bt/revision @@ -1 +1 @@ -20 +22 \ No newline at end of file diff --git a/bt5/erp5_l10n_pl_PL/bt/template_catalog_datetime_key_list b/bt5/erp5_l10n_pl_PL/bt/template_catalog_datetime_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_l10n_pl_PL/bt/template_catalog_scriptable_key_list b/bt5/erp5_l10n_pl_PL/bt/template_catalog_scriptable_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_l10n_pl_PL/bt/template_skin_id_list b/bt5/erp5_l10n_pl_PL/bt/template_skin_id_list index e69de29bb2..7beb967a37 100644 --- a/bt5/erp5_l10n_pl_PL/bt/template_skin_id_list +++ b/bt5/erp5_l10n_pl_PL/bt/template_skin_id_list @@ -0,0 +1 @@ +erp5_l10n_pl_PL \ No newline at end of file diff --git a/bt5/erp5_l10n_pl_PL/bt/template_tool_id_list b/bt5/erp5_l10n_pl_PL/bt/template_tool_id_list new file mode 100644 index 0000000000..e69de29bb2 -- 2.30.9