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
fb616f92
Commit
fb616f92
authored
Jul 17, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged assertion fix from 2.2 branch (add assertion to NodeList and
NamedNodeMap).
parent
dec6bebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lib/python/OFS/ZDOM.py
lib/python/OFS/ZDOM.py
+9
-1
No files found.
lib/python/OFS/ZDOM.py
View file @
fb616f92
...
...
@@ -523,7 +523,12 @@ class NodeList:
Python extensions: can use sequence-style 'len', 'getitem', and
'for..in' constructs.
"""
# The security machinery is not willing to treat this like a
# list just because we act like one. We need to assert that
# its ok to allow access to items in the nodelist.
__allow_access_to_unprotected_subobjects__
=
1
def
__init__
(
self
,
list
=
None
):
self
.
_data
=
list
or
[]
...
...
@@ -551,6 +556,9 @@ class NamedNodeMap:
Python extensions: can use sequence-style 'len', 'getitem', and
'for..in' constructs, and mapping-style 'getitem'.
"""
# Tell the security machinery to allow access to items.
__allow_access_to_unprotected_subobjects__
=
1
def
__init__
(
self
,
data
=
None
):
if
data
is
None
:
data
=
{}
...
...
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