[Erp5-report] r20939 - /erp5/trunk/products/CMFActivity/ActivityTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 14 03:04:47 CEST 2008
Author: vincent
Date: Wed May 14 03:04:47 2008
New Revision: 20939
URL: http://svn.erp5.org?rev=20939&view=rev
Log:
Define PATH_INFO if not set.
Modified:
erp5/trunk/products/CMFActivity/ActivityTool.py
Modified: erp5/trunk/products/CMFActivity/ActivityTool.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/ActivityTool.py?rev=20939&r1=20938&r2=20939&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/ActivityTool.py (original)
+++ erp5/trunk/products/CMFActivity/ActivityTool.py Wed May 14 03:04:47 2008
@@ -823,6 +823,10 @@
if parents is None:
warn('CMFActivity.ActivityTool.invoke: PARENTS is not defined in REQUEST. It should only happen in unit tests.')
request['PARENTS'] = self.aq_chain[:]
+ # XXX: itools (used by iHotfix) requires PATH_INFO to be set, and it's
+ # not when runing unit tests. Recreate it if it does not exist.
+ if request.environ.get('PATH_INFO') is None:
+ request['PATH_INFO'] = '/Control_Panel/timer_service/process_timer'
# restore request information
new_request = request.clone()
More information about the Erp5-report
mailing list