Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
xml.dom.expatbuilder.Rejecter Class Reference
Inheritance diagram for xml.dom.expatbuilder.Rejecter:
Inheritance graph
[legend]
Collaboration diagram for xml.dom.expatbuilder.Rejecter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def start_element_handler
def end_element_handler

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes

 _level

Static Private Attributes

tuple __slots__ = ()

Detailed Description

Definition at line 533 of file expatbuilder.py.


Constructor & Destructor Documentation

def xml.dom.expatbuilder.Rejecter.__init__ (   self,
  builder 
)

Reimplemented from xml.dom.expatbuilder.FilterCrutch.

Definition at line 536 of file expatbuilder.py.

00536 
00537     def __init__(self, builder):
00538         FilterCrutch.__init__(self, builder)
00539         parser = builder._parser
00540         for name in ("ProcessingInstructionHandler",
00541                      "CommentHandler",
00542                      "CharacterDataHandler",
00543                      "StartCdataSectionHandler",
00544                      "EndCdataSectionHandler",
00545                      "ExternalEntityRefHandler",
00546                      ):
00547             setattr(parser, name, None)

Here is the caller graph for this function:


Member Function Documentation

Definition at line 551 of file expatbuilder.py.

00551 
00552     def end_element_handler(self, *args):
00553         if self._level == 0:
00554             # restore the old handlers
00555             parser = self._builder._parser
00556             self._builder.install(parser)
00557             parser.StartElementHandler = self._old_start
00558             parser.EndElementHandler = self._old_end
00559         else:
00560             self._level = self._level - 1

Definition at line 548 of file expatbuilder.py.

00548 
00549     def start_element_handler(self, *args):
00550         self._level = self._level + 1


Member Data Documentation

tuple xml.dom.expatbuilder.Rejecter.__slots__ = () [static, private]

Reimplemented from xml.dom.expatbuilder.FilterCrutch.

Definition at line 534 of file expatbuilder.py.

Reimplemented from xml.dom.expatbuilder.FilterCrutch.

Definition at line 549 of file expatbuilder.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: