Package zope :: Package configuration :: Module xmlconfig :: Class ParserInfo
[show private | hide private]
[frames | no frames]

Type ParserInfo

object --+
         |
        ParserInfo


Information about a directive based on parser data

This includes the directive location, as well as text data contained in the directive.

>>> info = ParserInfo('tests//sample.zcml', 1, 0)
>>> info
File "tests//sample.zcml", line 1.0
>>> print info
File "tests//sample.zcml", line 1.0
>>> info.characters("blah\n")
>>> info.characters("blah")
>>> info.text
u'blah\nblah'
>>> info.end(7, 0)
>>> info
File "tests//sample.zcml", line 1.0-7.0
>>> print info
File "tests//sample.zcml", line 1.0-7.0
  <configure xmlns='http://namespaces.zope.org/zope'>
    <!-- zope.configure -->
    <directives namespace="http://namespaces.zope.org/zope">
      <directive name="hook" attributes="name implementation module"
         handler="zope.configuration.metaconfigure.hook" />
    </directives>
  </configure>

Method Summary
  __init__(self, file, line, column)
  __repr__(self)
  __str__(self)
  characters(self, characters)
  end(self, line, column)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
unicode text = u''

Class Variable Details

text

Type:
unicode
Value:
u''                                                                    

Generated by Epydoc 2.1 on Fri Jun 24 12:01:21 2005 http://epydoc.sf.net