ok, Thunderbird screwed up the formatting a bit:

in Amara, this would look like:

writer = MarkupWriter()
writer.startDocuement()
writer.startElement( 'people' )
for rec in db:
    writer.startElement( 'person' )
    writer.simpleElement( 'name', content=rec.get('name') )
    writer.simpleElement( 'age', content=rec.get('age') )
    birthday = datetime.fromtimestamp( rec.get( 'birthday' ) )
    writer.simpleElement( 'birthday', content=birthday.strftime( "%a,
%d %b %Y %H:%M:%S EST" ) )|
     writer.endElement( 'person' )
writer.endElement( 'people' )
writer.endDocument()


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to