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
d08308f3
Commit
d08308f3
authored
Oct 21, 2012
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LP #1061247: Fix ZMI properties edit form for properties named `method`.
parent
e92a261c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/OFS/PropertyManager.py
src/OFS/PropertyManager.py
+7
-4
No files found.
doc/CHANGES.rst
View file @
d08308f3
...
...
@@ -18,6 +18,8 @@ http://docs.zope.org/zope2/releases/.
- repoze.tm2 = 1.0
- tempstorage = 2.12.2
- LP #1061247: Fix ZMI properties edit form for properties named `method`.
- LP #1058049: Fix support for zoperunner section in zope.conf.
- Explicitly close all databases on shutdown, which ensures `Data.fs.index`
...
...
src/OFS/PropertyManager.py
View file @
d08308f3
...
...
@@ -299,9 +299,9 @@ class PropertyManager(Base, ElementWithAttributes):
name
=
prop
[
'id'
]
if
'w'
in
prop
.
get
(
'mode'
,
'wd'
):
if
prop
[
'type'
]
==
'multiple selection'
:
value
=
REQUEST
.
get
(
name
,
[])
value
=
REQUEST
.
form
.
get
(
name
,
[])
else
:
value
=
REQUEST
.
get
(
name
,
''
)
value
=
REQUEST
.
form
.
get
(
name
,
''
)
self
.
_updateProperty
(
name
,
value
)
if
REQUEST
:
message
=
"Saved changes."
...
...
@@ -316,8 +316,11 @@ class PropertyManager(Base, ElementWithAttributes):
name=value parameters
"""
if
REQUEST
is
None
:
props
=
{}
else
:
props
=
REQUEST
props
=
{}
elif
isinstance
(
REQUEST
,
dict
):
props
=
REQUEST
else
:
props
=
REQUEST
.
form
if
kw
:
for
name
,
value
in
kw
.
items
():
props
[
name
]
=
value
...
...
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