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
92d9f9e7
Commit
92d9f9e7
authored
Jul 31, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some typos in doc strings and added a missing DOM exception class.
parent
6a6e25b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
lib/python/OFS/ZDOM.py
lib/python/OFS/ZDOM.py
+9
-7
No files found.
lib/python/OFS/ZDOM.py
View file @
92d9f9e7
...
...
@@ -134,6 +134,8 @@ class HierarchyRequestException(DOMException):
code
=
HIERARCHY_REQUEST_ERR
class
WrongDocumentException
(
DOMException
):
code
=
WRONG_DOCUMENT_ERR
class
InvalidCharacterException
(
DOMException
):
code
=
INVALID_CHARACTER_ERR
class
NoDataAllowedException
(
DOMException
):
code
=
NO_DATA_ALLOWED_ERR
class
NoModificationAllowedException
(
DOMException
):
...
...
@@ -221,12 +223,12 @@ class Node:
return
NodeList
()
def
getFirstChild
(
self
):
"""
Returns a NodeList that contains all children of this node.
If there are no children, this is a empty NodeList
"""
"""
The first child of this node. If there is no such node
this returns None.
"""
return
None
def
getLastChild
(
self
):
"""The last child of this node.
If ther
is no such node
"""The last child of this node.
If there
is no such node
this returns None."""
return
None
...
...
@@ -297,15 +299,15 @@ class Element(Node):
return
NodeList
(
self
.
objectValues
())
def
getFirstChild
(
self
):
"""
Returns a NodeList that contains all children of this node.
If there are no children, this is a empty NodeList
"""
"""
The first child of this node. If there is no such node
this returns None
"""
children
=
self
.
getChildNodes
()
if
children
:
return
children
.
_data
[
0
]
return
None
def
getLastChild
(
self
):
"""The last child of this node. If ther is no such node
"""The last child of this node. If ther
e
is no such node
this returns None."""
children
=
self
.
getChildNodes
()
if
children
:
...
...
@@ -363,7 +365,7 @@ class Element(Node):
for
child
in
self
.
objectValues
():
if
(
child
.
getNodeType
()
==
ELEMENT_NODE
and
\
child
.
getTagName
()
==
tagname
or
tagname
==
'*'
):
nodeList
.
append
(
child
)
nodeList
.
append
(
child
)
n1
=
child
.
getElementsByTagName
(
tagname
)
nodeList
=
nodeList
+
n1
.
_data
return
NodeList
(
nodeList
)
...
...
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