Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
783d0f95
Commit
783d0f95
authored
Sep 26, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added warning
fixed typo
parent
6694b792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
+10
-4
No files found.
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
View file @
783d0f95
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
'$Id: PathIndex.py,v 1.
5 2001/08/28 01:05:3
1 andreasjung Exp $'
__version__
=
'$Id: PathIndex.py,v 1.
6 2001/09/26 14:55:5
1 andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
...
...
@@ -98,7 +98,7 @@ from BTrees.OOBTree import OOBTree,OOSet
from
BTrees.OIBTree
import
OIBTree
from
BTrees.IIBTree
import
IISet
,
difference
,
intersection
,
union
from
types
import
StringType
import
re
import
re
,
warnings
class
PathIndex
(
PluggableIndex
.
PluggableIndex
,
Persistent
,
...
...
@@ -345,6 +345,13 @@ class PathIndex(PluggableIndex.PluggableIndex, Persistent,
record
=
parseIndexRequest
(
request
,
self
.
id
,
self
.
query_options
)
if
record
.
keys
==
None
:
return
None
if
request
.
has_key
(
'%s_level'
%
cid
):
warnings
.
warn
(
"The usage of the '%s_level' "
"is no longer recommended.
\
n
"
"Please use a mapping object and the "
"'level' key to specify the operator."
%
cid
)
# get the level parameter
level
=
record
.
get
(
"level"
,
0
)
...
...
@@ -368,12 +375,11 @@ class PathIndex(PluggableIndex.PluggableIndex, Persistent,
def
uniqueValues
(
self
,
name
=
None
,
withLength
=
0
):
""" need to be consistent with the interface """
""" need
ed
to be consistent with the interface """
return
self
.
_index
.
keys
()
index_html
=
DTMLFile
(
'dtml/index'
,
globals
())
manage_workspace
=
DTMLFile
(
'dtml/managePathIndex'
,
globals
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment