Armed with a text editor

mu's views on program and recipe! design

<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
## see http://www.atomenabled.org/developers/syndication/
#from manager import WikiText, DoneText
#from time import localtime, strftime
#def format_atom_date(date):
#    date = localtime(int(date))
#    return strftime('%Y-%m-%dT%H:%M:%SZ', date)
#updated = max(files)[0]
<id>`manager.site + manager.document`</id>
<title>Trackbacks on `title`</title>
<updated>`format_atom_date(updated)`</updated>
<link rel="alternate" type="text/html" href="`manager.uri`"/>
<author><name>Michael Urman</name><uri>`manager.site`</uri></author>

#for tb in trackbacks:
#    meta = manager.load_meta(tb['document'])
#    url = '%s%s#trackback-%s' % (manager.site, tb['document'], tb['index'])
<entry>
<title>Re: `meta.get('title', 'Untitled')`</title>
<link rel="alternate" type="text/html" href="`url`"/>
<author>
  <name>`tb.get('name', 'Unknown')`</name>
#    if tb.get('url'):
<url>`tb['url']`</url>
#    pass
</author>
<id>`url`</id>
<published>`format_atom_date(tb.get('issued', localtime()))`</published>
<content type="text/html" mode="escaped"><![CDATA[`WikiText(tb['excerpt'], manager=manager).replace(']]>',']]\\76')`]]></content>
</entry>
#pass
</feed>