Commit c15f4e39 authored by Andreas Jung's avatar Andreas Jung

Collector #183: added additional check for custom object hook

parent 9abc9cc0
......@@ -11,7 +11,7 @@
#
##############################################################################
__version__ = '$Id: PathIndex.py,v 1.15 2001/11/28 15:51:03 matt Exp $'
__version__ = '$Id: PathIndex.py,v 1.16 2002/01/30 10:25:14 andreasjung Exp $'
from Products.PluginIndexes import PluggableIndex
from Products.PluginIndexes.common.util import parseIndexRequest
......@@ -113,6 +113,10 @@ class PathIndex(PluggableIndex.PluggableIndex, Persistent,
except:
return 0
if not isinstance(path,StringType):
raise TypeError, "attribute/method must be string"
else:
try:
......
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