Commit c4518e81 authored by Andreas Jung's avatar Andreas Jung

Do not raise an exception if REQUEST is None. This happens frequently

when calling manage_reindexIndex() from script code but not TTW.
parent 5f7e2a00
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
""" ZCatalog product """ ZCatalog product
$Id: ZCatalog.py,v 1.129 2003/12/31 21:17:28 poster Exp $ $Id: ZCatalog.py,v 1.130 2004/03/19 13:25:34 andreasjung Exp $
""" """
from Globals import DTMLFile, MessageDialog from Globals import DTMLFile, MessageDialog
...@@ -790,6 +790,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -790,6 +790,7 @@ class ZCatalog(Folder, Persistent, Implicit):
style url. If no object is found, None is returned. style url. If no object is found, None is returned.
No exceptions are raised. No exceptions are raised.
""" """
if REQUEST:
script=REQUEST.script script=REQUEST.script
if path.find(script) != 0: if path.find(script) != 0:
path='%s/%s' % (script, path) path='%s/%s' % (script, path)
......
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