I really like this - the web2py way to do this. :-)

On 5/22/09, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> This is now done in trunk.
>
> - download trunk
> - Create a new app
> - make sure you have the new views/generic.* in the new app
>
> - edit default.py and create an action:
>
> def test():
>     return dict(title='title1',link='link',description='description',
>                 items=[dict
> (title='title2',link='link',description='description'),
>                        dict
> (title='title3',link='link',description='description'),
>                        dict
> (title='title4',link='link',description='description')])
>
> now call it in the usual way
>   http://.../test
> but also try
>   http://.../test.html
>   http://.../test.xml
>   http://.../test.json
>   http://.../test.rss
>
> >
>


-- 
 Álvaro Justen
 Peta5 - Telecomunicações e Software Livre
 21 3021-6001 / 9898-0141
 http://www.peta5.com.br/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to