On Mar 17, 1:09 pm, "mr.freeze" <[email protected]> wrote: > It seems you can return json/xml/etc. data by either decorating an > action with @service.json or by simply calling the action with a file > extension index.json. Is there a difference?
The "extension" uses the generic view templates - have a look at those for the "default" code these run; Compare this with gluon/tools.py::class Serve:serve_json (for example) --- it calls the wrapped function. -- You received this message because you are subscribed to the Google Groups "web2py-users" 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.

