I've added the following RSS feed function to my default controller:
def updatefeed():
list_of_rss_entry_dicts = [ dict(title = data_set.f_headline,
link = 'http://' + settings.domain_name,
description = data_set.f_content)
for data_set in db(db.t_news).select(orderby
=db.t_news.created_on)[-3:]]
return dict(title=settings.title + ' RSS feed',
link=settings.domain_name,
description=settings.title + ' RSS feed',
entries=list_of_rss_entry_dicts)
I put this line into the header of my layout.html file:
<link rel="alternative" type="application/rss+xml" title="{{=settings.title
+ ' RSS feed'}}" href="{{=URL('default','updatefeed.rss')}}" />
The feed seems to be working fine when accessed from
default/updatefeed.rss, but it cannot be detected from the site's home page
(for example, by Firefox's Sage plugin). Any ideas on how to fix this?
Thanks.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.