You don't. You rss viewer (the browser in your case) decides how it
looks like.

On Nov 15, 1:19 pm, Web2Py Freak <halna...@gardeniatelco.com> wrote:
> Dear All,
>
> I used this code in controller to get me RSS feeds from a website and
> it did but i dont know how to use it in view :
>
> this is the code i used :
>
> def index():
>
>     import gluon.contrib.feedparser as feedparser
>     d = feedparser.parse(
>         "http://www.ammonnews.net/rss.aspx?sectionid=50§ionName=
> %D8%A7%D8%AE%D8%A8%D8%A7%D8%B1%20%D8%A7%D9%84%D8%A7%D8%B1%D8%AF
> %D9%86%20RSS")
>     return dict(title=d.channel.title,
>                 link = d.channel.link,
>                 description = d.channel.description,
>                 created_on = request.now,
>                 entries = [
>                   dict(title = entry.title,
>                   link = entry.link,
>                   description = entry.description,
>                   created_on = request.now) for entry in d.entries])
>
> and in default/index i got some feeds but how can i make it look like
> what i want ?

Reply via email to