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
69f6f129
Commit
69f6f129
authored
Mar 19, 2002
by
Casey Duncan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed PropertyManager/PropertySheets so that you can add a property named
'ids' without the sky falling.
parent
3933e8af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/OFS/PropertyManager.py
lib/python/OFS/PropertyManager.py
+5
-1
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+5
-1
lib/python/OFS/dtml/properties.dtml
lib/python/OFS/dtml/properties.dtml
+1
-1
No files found.
doc/CHANGES.txt
View file @
69f6f129
...
...
@@ -55,6 +55,9 @@ Zope Changes
the default level for <Hx> elements (see doc/ENVIRONMENT.txt)
Bugs:
- Fixed PropertyManager/PropertySheets so that you can safely add a
property named 'ids' without breaking your properties page.
- Removed spurious 'self' from scarecrow interfaces; updated
method-generation in Interface package to ignore self when
...
...
lib/python/OFS/PropertyManager.py
View file @
69f6f129
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Property management"""
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
import
ExtensionClass
,
Globals
import
ZDOM
...
...
@@ -310,6 +310,10 @@ class PropertyManager(ExtensionClass.Base, ZDOM.ElementWithAttributes):
def
manage_delProperties
(
self
,
ids
=
None
,
REQUEST
=
None
):
"""Delete one or more properties specified by 'ids'."""
if
REQUEST
:
# Bugfix for property named "ids" (Casey)
if
ids
==
self
.
getProperty
(
'ids'
,
None
):
ids
=
None
ids
=
REQUEST
.
get
(
'_ids'
,
ids
)
if
ids
is
None
:
return
MessageDialog
(
title
=
'No property specified'
,
...
...
lib/python/OFS/PropertySheets.py
View file @
69f6f129
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Property sheets"""
__version__
=
'$Revision: 1.8
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
3
$'
[
11
:
-
2
]
import
time
,
App
.
Management
,
Globals
from
webdav.WriteLockInterface
import
WriteLockInterface
...
...
@@ -421,6 +421,10 @@ class PropertySheet(Traversable, Persistent, Implicit):
def
manage_delProperties
(
self
,
ids
=
None
,
REQUEST
=
None
):
"""Delete one or more properties specified by 'ids'."""
if
REQUEST
:
# Bugfix for properties named "ids" (casey)
if
ids
==
self
.
getProperty
(
'ids'
,
None
):
ids
=
None
ids
=
REQUEST
.
get
(
'_ids'
,
ids
)
if
ids
is
None
:
return
MessageDialog
(
title
=
'No property specified'
,
...
...
lib/python/OFS/dtml/properties.dtml
View file @
69f6f129
...
...
@@ -42,7 +42,7 @@ property values, edit the values and click "Save Changes".
<tr>
<td align="left" valign="top" width="16">
<dtml-if "'d' in _['sequence-item'].get('mode', 'awd')">
<input type="checkbox" name="ids:list" value="<dtml-var id html_quote>"
<input type="checkbox" name="
_
ids:list" value="<dtml-var id html_quote>"
id="cb-<dtml-var id>">
<dtml-else>
</dtml-if>
...
...
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