[Erp5-report] r23910 - in /erp5/trunk/bt5/erp5_project: SkinTemplateItem/portal_skins/erp5_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 30 11:02:27 CEST 2008
Author: seb
Date: Tue Sep 30 11:02:13 2008
New Revision: 23910
URL: http://svn.erp5.org?rev=23910&view=rev
Log:
2008-09-30 Seb
* Raise Error with nice message when no source is found on a task instead
Modified:
erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_printAsODSMonthly.xml
erp5/trunk/bt5/erp5_project/bt/revision
Modified: erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_printAsODSMonthly.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_printAsODSMonthly.xml?rev=23910&r1=23909&r2=23910&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_printAsODSMonthly.xml (original)
+++ erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_printAsODSMonthly.xml Tue Sep 30 11:02:13 2008
@@ -113,6 +113,11 @@
for task_line in task_line_list:\n
# initialize some variables\n
source = task_line.getSource()\n
+ if source is None:\n
+ # This should not happens, so display an error message\n
+ raise ValueError, context.Base_translateString(\\\n
+ "This task should have a source : ${task_relative_url}",\n
+ mapping = {\'task_relative_url\': task.getRelativeUrl()})\n
source_title = task_line.getSourceTitle()\n
start_date_task = task_line.getStartDate()\n
stop_date_task = task_line.getStopDate()\n
@@ -254,6 +259,7 @@
<string>monthly_worker_quantity_dict</string>
<string>task_line</string>
<string>source</string>
+ <string>ValueError</string>
<string>source_title</string>
<string>start_date_task</string>
<string>stop_date_task</string>
Modified: erp5/trunk/bt5/erp5_project/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/revision?rev=23910&r1=23909&r2=23910&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/revision (original)
+++ erp5/trunk/bt5/erp5_project/bt/revision Tue Sep 30 11:02:13 2008
@@ -1,1 +1,1 @@
-608
+610
More information about the Erp5-report
mailing list