I am thinking of implementing the following...

1) Right now if you call an action with

    http://...../action

I am thinking of adding an optional .html at the end that does
nothing, so that both the urls would be valid

    http://...../action
    http://...../action.html

2) I am thinking of allowing other extensions like for example

    http://...../action.json

In this case web2py would treat the model/controllers in the same way
bout would look for a view called

    views/default/action.json

and if it does not exist it would use

    views/generic.json

A generic view would use the code in tools.py/services to try
serialize in json the content of the dictionary returned by the
action. The syntax of the views would be the same as .html views.

We could provide out of the box: generic.json, generic.xml,
generic.csv, generic.rss, generic.pickle... (what else?)

Pros/Cons?

Massimo
--~--~---------~--~----~------------~-------~--~----~
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