[web2py] Re: Philosophical help with REST

2014-09-02 Thread Cliff Kachinske
Your table primary key doesn't have to be an integer. Maybe you could abbreviate the club names and slugify them using IS_SLUG. Of course you then will have to jump through some legacy table hoops with the DAL. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:/

[web2py] Re: Philosophical help with REST

2014-09-01 Thread Joe Barnhart
That seemed like the solution. But render() returns a generator, and the json converter doesn't work with it directly. So, I could run it thru a for loop to materialize the rows, but that feels again like I'm beginning to swim upstream. Plus, I'd have to do this individually for each rest URL

[web2py] Re: Philosophical help with REST

2014-09-01 Thread Leonel Câmara
Seems like you need this: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Rendering-rows-using-represent This way you can render the fields using their represents before returning them to the user. -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] Re: Philosophical help with REST

2014-08-31 Thread Tim Richardson
Helpful it would be to see your table definitions. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to