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>
There are no implemented interfaces.
text
(type:
unicode
)
u''
characters(characters)
end(line, column)
There are no known subclasses.