I also just added http://..../app/default/data.json/create/tablename?json=...
where ... is a json encoded dictionary of field values. Still not completely convinced this is the best way to go... Massimo On Jun 13, 12:58 pm, DenesL <[email protected]> wrote: > On Jun 13, 9:38 am, mdipierro <[email protected]> wrote: > > > On Jun 13, 9:01 am, DenesL <[email protected]> wrote: > > > > On Jun 13, 7:57 am, mdipierro <[email protected]> wrote: > > > > > > 2) /app/default/select creates a ticket while > > > > > /app/default/data/select returns "404 not found" > > > > > more consistent results would be better. > > > > > I can fix this. > > > This is fixed in trunk. Please check it. > > Consistent response now. > > > > > > > > > > One fix would be to move the 'tables' default response into > > > > > Crud.select > > > > > (), but is it a good idea?. > > > > > No because I do not expect people to exposed the full crud methods, in > > > > pasrticular it may not be a good idea to list the table names. > > > > But then why list them with /app/default/data or /app/default/data/ > > > tables? > > > because I do not rally envision people doing > > > def data(): return dict(form=crud()) > > > but more things like > > > def update_mytable(): return dict(form=crud.update > > (db.mytable,request.args(0))) > > Don't underestimate what people will do. > I agree about the usage but that does not explain why you are keeping > the tables option, makes a nice lab though. > > > > > > > > 3) /app/default/data.xml (or json or...) is ignored while > > > > > /app/default/data.xml/select/dog gives "invalid view" (no generic?) > > > > > 4) Should Crud offer default serializers for xml, json, ... ? > > Generic views and serializers (some) are OK in trunk 1040. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

