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 <denes1...@yahoo.ca> wrote:
> On Jun 13, 9:38 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > On Jun 13, 9:01 am, DenesL <denes1...@yahoo.ca> wrote:
>
> > > On Jun 13, 7:57 am, mdipierro <mdipie...@cs.depaul.edu> 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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to