Commit 3f801c51 authored by Andreas Jung's avatar Andreas Jung

a level parameter passed as string will be converted to int

parent 8df5ac2c
......@@ -83,7 +83,7 @@
#
##############################################################################
__version__ = '$Id: PathIndex.py,v 1.11 2001/10/15 21:40:25 andreasjung Exp $'
__version__ = '$Id: PathIndex.py,v 1.12 2001/11/20 20:30:30 andreasjung Exp $'
from Products.PluginIndexes import PluggableIndex
from Products.PluginIndexes.common.util import parseIndexRequest
......@@ -268,7 +268,7 @@ class PathIndex(PluggableIndex.PluggableIndex, Persistent,
if isinstance(path,StringType):
level = default_level
else:
level = path[1]
level = int(path[1])
path = path[0]
comps = self.splitPath(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