render/simple.py: Restore command-line mode.
bzr revid: p_christ@hol.gr-20081124151831-r2hck7h2zs714jgg
This commit is contained in:
parent
7f3ee0107e
commit
1b69658f88
|
@ -68,7 +68,8 @@ class simple(render.render):
|
||||||
|
|
||||||
if __name__=='__main__':
|
if __name__=='__main__':
|
||||||
import time
|
import time
|
||||||
s = simple('''<test>
|
s = simple()
|
||||||
|
s.xml = '''<test>
|
||||||
<author-list>
|
<author-list>
|
||||||
<author>
|
<author>
|
||||||
<name>Fabien Pinckaers</name>
|
<name>Fabien Pinckaers</name>
|
||||||
|
@ -80,8 +81,9 @@ if __name__=='__main__':
|
||||||
</author>
|
</author>
|
||||||
No other
|
No other
|
||||||
</author-list>
|
</author-list>
|
||||||
</test>''')
|
</test>'''
|
||||||
print s.render()
|
if s.render():
|
||||||
|
print s.get()
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue