| Trees | Index | Help |
|
|---|
| Package zope :: Package configuration :: Module xmlconfig :: Class 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 | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
| Class Variable Summary | |
|---|---|
unicode |
text = u''
|
| Class Variable Details |
|---|
text
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Jun 24 12:01:21 2005 | http://epydoc.sf.net |