[Erp5-report] r23259 - in /erp5/trunk/bt5/erp5_calendar: ActionTemplateItem/portal_types/Sy...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 28 18:31:24 CEST 2008


Author: jerome
Date: Thu Aug 28 18:31:24 2008
New Revision: 23259

URL: http://svn.erp5.org?rev=23259&view=rev
Log:
Allow to specify which resource are used in leave period / presence period

Added:
    erp5/trunk/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/
    erp5/trunk/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/calendar_preference.xml
    erp5/trunk/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/
    erp5/trunk/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml
Modified:
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml
    erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml
    erp5/trunk/bt5/erp5_calendar/bt/revision
    erp5/trunk/bt5/erp5_calendar/bt/template_action_path_list
    erp5/trunk/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list

Added: erp5/trunk/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/calendar_preference.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%2520Preference/calendar_preference.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/calendar_preference.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/ActionTemplateItem/portal_types/System%20Preference/calendar_preference.xml Thu Aug 28 18:31:24 2008
@@ -1,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>

Added: erp5/trunk/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/PortalTypePropertySheetTemplateItem/property_sheet_list.xml Thu Aug 28 18:31:24 2008
@@ -1,0 +1,5 @@
+<property_sheet_list>
+ <portal_type id="System Preference">
+  <item>CalendarPreference</item>
+ </portal_type>
+</property_sheet_list>

Modified: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml?rev=23259&r1=23258&r2=23259&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml (original)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary.xml Thu Aug 28 18:31:24 2008
@@ -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>

Added: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_absence_resource.xml Thu Aug 28 18:31:24 2008
@@ -1,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>

Added: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Calendar_viewFieldLibrary/my_presence_resource.xml Thu Aug 28 18:31:24 2008
@@ -1,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>

Added: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_getResourceItemList.xml Thu Aug 28 18:31:24 2008
@@ -1,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>

Modified: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml?rev=23259&r1=23258&r2=23259&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml (original)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/LeavePeriod_view/my_resource.xml Thu Aug 28 18:31:24 2008
@@ -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>

Added: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.xml Thu Aug 28 18:31:24 2008
@@ -1,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>

Modified: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml?rev=23259&r1=23258&r2=23259&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml (original)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_view/my_resource.xml Thu Aug 28 18:31:24 2008
@@ -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>

Added: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar.xml Thu Aug 28 18:31:24 2008
@@ -1,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>

Added: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_absence_calendar_period_type.xml Thu Aug 28 18:31:24 2008
@@ -1,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_absence_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 Absence</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>

Added: erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml?rev=23259&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml (added)
+++ erp5/trunk/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/SystemPreference_viewCalendar/my_preferred_presence_calendar_period_type.xml Thu Aug 28 18:31:24 2008
@@ -1,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>

Modified: erp5/trunk/bt5/erp5_calendar/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/bt/revision?rev=23259&r1=23258&r2=23259&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/bt/revision (original)
+++ erp5/trunk/bt5/erp5_calendar/bt/revision Thu Aug 28 18:31:24 2008
@@ -1,1 +1,1 @@
-347
+349

Modified: erp5/trunk/bt5/erp5_calendar/bt/template_action_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/bt/template_action_path_list?rev=23259&r1=23258&r2=23259&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/bt/template_action_path_list (original)
+++ erp5/trunk/bt5/erp5_calendar/bt/template_action_path_list Thu Aug 28 18:31:24 2008
@@ -18,4 +18,5 @@
 Presence Request Module | view
 Presence Request Period | periodicity_view
 Presence Request Period | view
-Presence Request | view
+Presence Request | view
+System Preference | calendar_preference

Modified: erp5/trunk/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list?rev=23259&r1=23258&r2=23259&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list (original)
+++ erp5/trunk/bt5/erp5_calendar/bt/template_portal_type_property_sheet_list Thu Aug 28 18:31:24 2008
@@ -1,0 +1,1 @@
+System Preference | CalendarPreference




More information about the Erp5-report mailing list