I'm having trouble producing html rather than plain text.
Here's the relevant snippet of code:
class feedentries:
def GET(self):
res = []
urls = Base('urls').open()
for u in urls:
f = feedparser.parse(u.link)
length = len(f['entries'])
zero = 0
while zero < length:
title = f.entries[zero].title
res.append(title)
summary = f.entries[zero].summary
res.append(summary)
zero = zero + 1
web.header('Content-Type','text/html')
return render.result(res)
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.