views/generics.xml is your friend. And probably you'll want to create a your_controller/check.xml too, if you're in the need of overcustomizing your xml....
Il giorno venerdì 18 maggio 2012 06:57:02 UTC+2, bob ha scritto: > > Great app, but I'm stuck on how to build custom XML. > > I have the following: > > @request.restful() > def check(): > def GET(id): > count = db(db.users.user_name==id).count() > if count > 0: > return dict(Status=1) > else: > return dict(Status=0) > > return locals() > > when I do a 'check.xml/foo' request I get back: > > <document> > <Status>1</Status> > </document> > > if foo exists. How do I change the XML that is being built? I would > like to replace the <document>, etc. > > thanks much for a very nice framework. > bob >

