diff --git a/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/calendar_preference.xml b/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/calendar_preference.xml new file mode 100644 index 0000000000000000000000000000000000000000..dfd0d74aa9d14a72b500f7e82f7260411d32972f --- /dev/null +++ b/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/calendar_preference.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>calendar_preference</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>7.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Calendar</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/SystemPreference_viewCalendar</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..415f8c0d778b27ccc0c6a8df0fac9becb1cd20c7 --- /dev/null +++ b/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -0,0 +1,5 @@ +<property_sheet_list> + <portal_type id="System Preference"> + <item>CalendarPreference</item> + </portal_type> +</property_sheet_list> \ No newline at end of file diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml index 87874b4737c3da47c26273debe9c29ea11586e6a..dccde0baff9cce13e1547fc2cb0fff868db48ab4 100644 --- a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml @@ -120,9 +120,10 @@ <string>my_quantity</string> <string>my_exception_date</string> <string>my_destination_title</string> - <string>my_resource</string> <string>my_int_index</string> <string>listbox</string> + <string>my_absence_resource</string> + <string>my_presence_resource</string> </list> </value> </item> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml new file mode 100644 index 0000000000000000000000000000000000000000..ac0deaef86e85d0fc66cd403b67057b1daaea134 --- /dev/null +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml @@ -0,0 +1,132 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>title</string> + <string>items</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_absence_resource</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_category</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Type</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/LeavePeriod_getResourceItemList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml new file mode 100644 index 0000000000000000000000000000000000000000..a30766021e122303c14719a0947332f64303a540 --- /dev/null +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml @@ -0,0 +1,132 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>title</string> + <string>items</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_presence_resource</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_category</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Type</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/PresencePeriod_getResourceItemList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml new file mode 100644 index 0000000000000000000000000000000000000000..490625543fdde6ba0dcc38b9da622d63aa199e2a --- /dev/null +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml @@ -0,0 +1,161 @@ +<?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>portal = context.getPortalObject()\n +\n +preferred_absence_calendar_period_type = portal.portal_preferences\\\n + .getPreferredAbsenceCalendarPeriodType()\n +\n +method_id = portal.portal_preferences.getPreference(\n + \'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\')\n +\n +category = portal.portal_categories.calendar_period_type\n +\n +if preferred_absence_calendar_period_type:\n + category = category.restrictedTraverse(preferred_absence_calendar_period_type, category)\n +\n +return getattr(category, method_id)(local_sort_id=(\'int_index\', \'translated_title\'),\n + checked_permission=\'View\',\n + is_self_excluded=0,\n + base=1)\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>_params</string> </key> + <value> <string></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>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_getattr_</string> + <string>context</string> + <string>portal</string> + <string>preferred_absence_calendar_period_type</string> + <string>method_id</string> + <string>category</string> + <string>getattr</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>LeavePeriod_getResourceItemList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml index 760e002ac347be380c6cc739293cfb5729de4bfd..6758e70e904af459df6b5dd23371858d91f4c7da 100644 --- a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml @@ -80,7 +80,7 @@ </item> <item> <key> <string>field_id</string> </key> - <value> <string>my_resource</string> </value> + <value> <string>my_absence_resource</string> </value> </item> <item> <key> <string>form_id</string> </key> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml new file mode 100644 index 0000000000000000000000000000000000000000..ae4e2dd375b6e5e540aa0f29a050cd72a108a723 --- /dev/null +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml @@ -0,0 +1,161 @@ +<?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>portal = context.getPortalObject()\n +\n +preferred_presence_calendar_period_type = portal.portal_preferences\\\n + .getPreferredPresenceCalendarPeriodType()\n +\n +method_id = portal.portal_preferences.getPreference(\n + \'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\')\n +\n +category = portal.portal_categories.calendar_period_type\n +\n +if preferred_presence_calendar_period_type:\n + category = category.restrictedTraverse(preferred_presence_calendar_period_type, category)\n +\n +return getattr(category, method_id)(local_sort_id=(\'int_index\', \'translated_title\'),\n + checked_permission=\'View\',\n + is_self_excluded=0,\n + base=1)\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>_params</string> </key> + <value> <string></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>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_getattr_</string> + <string>context</string> + <string>portal</string> + <string>preferred_presence_calendar_period_type</string> + <string>method_id</string> + <string>category</string> + <string>getattr</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PresencePeriod_getResourceItemList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml index 76e7a9f86c88ed95844a047b264d1413c5df21f5..8358e8db2efac03866887071d0eaca450134f51e 100644 --- a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml @@ -74,7 +74,7 @@ <dictionary> <item> <key> <string>field_id</string> </key> - <value> <string>my_resource</string> </value> + <value> <string>my_presence_resource</string> </value> </item> <item> <key> <string>form_id</string> </key> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml new file mode 100644 index 0000000000000000000000000000000000000000..8371778c65ef0723ef17b37a5fd7ea5adfd20539 --- /dev/null +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml @@ -0,0 +1,158 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_preferred_presence_calendar_period_type</string> + <string>my_preferred_absence_calendar_period_type</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>SystemPreference_viewCalendar</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>SystemPreference_viewCalendar</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Calendar</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_resource.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml similarity index 92% rename from bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_resource.xml rename to bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml index 32791482130a663c1cbbb9f16356a8bb79631d50..230cf81cff3f2b22e1efc5b2277bd77e180910f9 100644 --- a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_resource.xml +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml @@ -20,7 +20,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>my_resource</string> </value> + <value> <string>my_preferred_absence_calendar_period_type</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -65,7 +65,7 @@ <value> <string></string> </value> </item> <item> - <key> <string>items</string> </key> + <key> <string>items</string> </key> <value> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> </value> @@ -75,7 +75,7 @@ <value> <string></string> </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>title</string> </key> <value> <string></string> </value> </item> </dictionary> @@ -105,7 +105,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Type</string> </value> + <value> <string>Type for Absence</string> </value> </item> </dictionary> </value> @@ -124,7 +124,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: getattr(here.portal_categories.calendar_period_type, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\', base=1)</string> </value> + <value> <string>python: getattr(here.portal_categories.calendar_period_type, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..f0667e144da2b3b854e6c101fdabc8eaffe7a129 --- /dev/null +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml @@ -0,0 +1,132 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>title</string> + <string>items</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_preferred_presence_calendar_period_type</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_category</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Type for Presence</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: getattr(here.portal_categories.calendar_period_type, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_calendar/bt/revision b/bt5/erp5_calendar/bt/revision index d35d5f782448e98ccbcb1fa8e162c079cc627e52..235adf8bd8fe3b9844d65f77956d73f5fed04ede 100644 --- a/bt5/erp5_calendar/bt/revision +++ b/bt5/erp5_calendar/bt/revision @@ -1 +1 @@ -347 \ No newline at end of file +349 \ No newline at end of file diff --git a/bt5/erp5_calendar/bt/template_action_path_list b/bt5/erp5_calendar/bt/template_action_path_list index 40c9ce33c6c706e364d8ca356b91363151928042..4fed831ee2bf844bbac8f50f1ca99eb4f26b1a1a 100644 --- a/bt5/erp5_calendar/bt/template_action_path_list +++ b/bt5/erp5_calendar/bt/template_action_path_list @@ -18,4 +18,5 @@ Person | planning Presence Request Module | view Presence Request Period | periodicity_view Presence Request Period | view -Presence Request | view \ No newline at end of file +Presence Request | view +System Preference | calendar_preference \ No newline at end of file diff --git a/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list b/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b2251663e21d72c0d93a7216d0ccf504a171f378 100644 --- a/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list +++ b/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list @@ -0,0 +1 @@ +System Preference | CalendarPreference \ No newline at end of file