[web2py] POST with web2py RESTful API

2011-08-09 Thread Tiago Rosa
Hi folks, I'm trying to expose some of my app's data through a RESTful API and I'm having some trouble using the POST method. In this post (http://www.reddit.com/r/programming/comments/g5hxq/ web2py_trunk_has_a_new_restful_api_that_writes_db/) and video Massimo introduced web2py's RESTful API wit

[web2py] ReportLab and AppEngine

2010-11-12 Thread Tiago Rosa
is a file- like object and ReportLab's API can act on that. Is there a similar way to generate these reports with GAE? Thanks in advance! --- Tiago Rosa

[web2py] Re: SQLFORM dropdown odd orderby

2010-10-26 Thread Tiago Rosa
Field('subject_id', label="Subject", requires=IS_IN_SET(key, value, zero=None))) return form[0][0] It's damn ugly dict/list manipulation and can certainly be improved, although possibly compromising readability. Best regards, Tiago Rosa On Oct 12, 3:41 am, T

[web2py] Using upload fixtures in GAE

2010-10-18 Thread Tiago Rosa
nd I haven't found a way to do this in a sane way. Do someone have an idea on how to do that elegantly? Any help will be greatly appreciated. Thanks in advance! Best regards, Tiago Rosa

[web2py] Re: SQLFORM dropdown odd orderby

2010-10-11 Thread Tiago Rosa
value = [res[1] for res in sorted(results, key=lambda x: x[2], reverse=True)] form = SQLFORM.factory( Field('subject_id', label="Subject", requires=IS_IN_SET(key, value, zero=None))) return form[0][0] On Oct 12, 1:15 am, Tiago Rosa w

[web2py] Re: SQLFORM dropdown odd orderby

2010-10-11 Thread Tiago Rosa
An even deeper problem: how to do something like that in a GAE environment? The BigTable-like datastore has a lot of query restrictions. On Oct 6, 9:25 pm, Tiago Rosa wrote: > Hello annet and Massimo! > > Thank you very much for your help! I still need some enlightenment > though

[web2py] Re: SQLFORM dropdown odd orderby

2010-10-11 Thread Tiago Rosa
An even deeper problem: how to do something like that in a GAE environment? The BigTable-like datastore has a lot of query restrictions. On Oct 6, 9:25 pm, Tiago Rosa wrote: > Hello annet and Massimo! > > Thank you very much for your help! I still need some enlightenment > though

[web2py] Re: SQLFORM dropdown odd orderby

2010-10-06 Thread Tiago Rosa
-like". Defining the orderby at the model level seems like a better option, but I can't figure it out yet. Again, thank you very much for your help! Regards, Tiago Rosa On Oct 6, 2:01 pm, annet wrote: > Massimo, > > > you can pass orderby to IS_IN_DB > > To which IS_

[web2py] SQLFORM dropdown odd orderby

2010-10-05 Thread Tiago Rosa
Hi folks, I'll try my best to explain my problem in detail: I have two tables ("teachers" and "subjects"), and a third one called "teachers_subjects" that basically describes a many-to-many relationship between teachers and subjects - a row in this table indicates that a given subject has been ta