Commit aae2abf9 authored by Vincent Pelletier's avatar Vincent Pelletier

Define PATH_INFO if not set.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20939 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd85c81f
......@@ -823,6 +823,10 @@ class ActivityTool (Folder, UniqueObject):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment