[web2py] put line in variable in view

2010-01-27 Thread Wes James
What is the best way to put this in to a variable so I can output it in a view and write it to a file: line=XML('ulliName:' + {{=schol.name}} + '/li/ul') {{=line}} {{f = open('/tmp/workfile', 'w') print f.write(line) }} line=XML() is not plain text is it? just can't do f.write on it - hmm

Re: [web2py] put line in variable in view

2010-01-27 Thread Thadeus Burgess
print f.write(line.xml()) the xml function returns a string which is the xml representation of the helper object. -Thadeus On Wed, Jan 27, 2010 at 11:24 AM, Wes James compte...@gmail.com wrote: What is the best way to put this in to a variable so I can output it in a view and write it to