On Mar 6, 2:11 pm, mdipierro <[email protected]> wrote:
> Please try this and send me comments:
> from gluon.tools import Service
> service=Service(globals())
> @service.rss
> def myfeed():
>     return dict
> (title='title',link='link',description='description',created_on=request.now,
>                 entries=[dict
> (title='title',link='link',description='description',created_on=request.now])
> def call():
>     return service()
> USAGE:
>    http://..../app/default//call/rss/myfeed

This would be good to get more understanding of how to use as well.

Ideally I'd be able to call the RSS functionality from within my own
CRUD controller, so if my format=rss, I can:
return service.rss(db.table)
or similar...I don't suppose this can be made that easy? ;)
At least if I could do something like:
for i in db(db.table.id>0).count():
    entries[i]=dict(title=db.table.name,link=URL
(r=request,c='default',f='data',args=
['read',db.table,db.table.id]),description=db.table.description,created_on=db.table.created_on)

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to