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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 8 20:38:29 CEST 2008


Author: rafael
Date: Wed Oct  8 20:38:28 2008
New Revision: 24110

URL: http://svn.erp5.org?rev=24110&view=rev
Log:
Fixed Planning box. The domain generator scripts adds float to the dates to get the next day, but this will not always get to the next day.

This domains scripts will be refatored to use DateUtils.py.

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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateMonthDomain.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateMonthDomain.xml?rev=24110&r1=24109&r2=24110&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateMonthDomain.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateMonthDomain.xml Wed Oct  8 20:38:28 2008
@@ -127,6 +127,7 @@
 \n
     # go to next date\n
     current_date = current_date + 3\n
+    current_date =  DateTime(current_date.year() , current_date.month() , current_date.day())\n
 else:\n
   return domain_list  \n
 \n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml?rev=24110&r1=24109&r2=24110&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml Wed Oct  8 20:38:28 2008
@@ -79,6 +79,7 @@
    bound_start =  bound_start - 1\n
 current_date =  bound_start + 7 * bound_variation\n
 bound_stop  = current_date + 7\n
+current_date =  DateTime(current_date.year() , current_date.month() , current_date.day())\n
 \n
 default_link_url =\'setLanePath?form_id=%s&list_selection_name=%s\' %(\n
                                  form_id, selection_name)\n
@@ -123,6 +124,7 @@
 \n
     category_list.append(o)\n
     current_date = current_date + 1\n
+    current_date =  DateTime(current_date.year() , current_date.month() , current_date.day())\n
 else:\n
   return domain_list\n
 \n

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=24110&r1=24109&r2=24110&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Wed Oct  8 20:38:28 2008
@@ -1,1 +1,1 @@
-984
+986




More information about the Erp5-report mailing list