[Erp5-report] r16277 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 12 05:12:04 CEST 2007


Author: rafael
Date: Wed Sep 12 05:12:04 2007
New Revision: 16277

URL: http://svn.erp5.org?rev=16277&view=rev
Log:
Try to use Current Day for Axis (header columns) if axis_start/stop was not DateTime

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_generateDateZoomAxis.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_generateDateZoomAxis.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_generateDateZoomAxis.xml?rev=16277&r1=16276&r2=16277&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_generateDateZoomAxis.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_generateDateZoomAxis.xml Wed Sep 12 05:12:04 2007
@@ -86,6 +86,9 @@
 # 1 dictionary == 1 group\n
 # Optional value \'link\'is accept to create special link on secondary axis.\n
 \n
+if not isinstance(axis_start, DateTime):\n
+  axis_start, axis_stop = context.planning_validate_date_list(DateTime(), current_zoom_level)\n
+\n
 if isinstance(axis_start, DateTime):\n
   # testing delimiter_type to apply (day, week, month, year)\n
   # from smallest type to biggest\n
@@ -343,10 +346,10 @@
                             <string>new_zoom_level</string>
                             <string>isinstance</string>
                             <string>DateTime</string>
+                            <string>_getiter_</string>
                             <string>type_list</string>
                             <string>default_link_url</string>
                             <string>good_type</string>
-                            <string>_getiter_</string>
                             <string>date_type</string>
                             <string>float</string>
                             <string>date_order</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=16277&r1=16276&r2=16277&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Wed Sep 12 05:12:04 2007
@@ -1,1 +1,1 @@
-466
+467




More information about the Erp5-report mailing list