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
4b349671
Commit
4b349671
authored
Jun 01, 2001
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made it so the parseIndexRequest constructor doesn't blow up on a MultiMapping.
parent
8b5c654a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
lib/python/Products/PluginIndexes/common/util.py
lib/python/Products/PluginIndexes/common/util.py
+9
-6
No files found.
lib/python/Products/PluginIndexes/common/util.py
View file @
4b349671
...
...
@@ -83,7 +83,7 @@
#
#############################################################################
__version__
=
'$Id: util.py,v 1.
2 2001/05/30 15:57:36 andreas
Exp $'
__version__
=
'$Id: util.py,v 1.
3 2001/06/01 16:50:06 shane
Exp $'
import
re
...
...
@@ -190,13 +190,16 @@ class parseIndexRequest:
else
:
self
.
keys
=
[
keys
]
params
=
filter
(
lambda
x
,
id
=
self
.
id
:
x
.
startswith
(
id
+
'_'
)
,
\
request
.
keys
())
if
hasattr
(
request
,
'keys'
):
# Look through the entire request for extra parameters.
# This is expensive!
params
=
filter
(
lambda
x
,
id
=
self
.
id
:
x
.
startswith
(
id
+
'_'
),
request
.
keys
())
params
=
map
(
lambda
x
,
id
=
self
.
id
:
x
[
len
(
id
)
+
1
:],
params
)
params
=
map
(
lambda
x
,
id
=
self
.
id
:
x
[
len
(
id
)
+
1
:],
params
)
for
p
in
params
:
setattr
(
self
,
p
,
request
[
self
.
id
+
'_'
+
p
])
for
p
in
params
:
setattr
(
self
,
p
,
request
[
self
.
id
+
'_'
+
p
])
if
self
.
keys
!=
None
:
self
.
keys
=
filter
(
lambda
x
:
len
(
str
(
x
))
>
0
,
self
.
keys
)
...
...
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