[web2py] Re: login_bare() blows up on GAE

2010-06-24 Thread mdipierro
Got it. I will look into creating such option. The issue is to make it general enough On Jun 24, 12:06 pm, NickFranceschina wrote: > yes that's what I'm saying... there must be some code in Web2py where > if the field is 'upload' and you're running on GAE, then it triggers > creation of the blob

[web2py] Re: login_bare() blows up on GAE

2010-06-24 Thread NickFranceschina
yes that's what I'm saying... there must be some code in Web2py where if the field is 'upload' and you're running on GAE, then it triggers creation of the blob field... but probably shouldn't create the blob in the same table, since on GAE there is no way to NOT load the blob (it always loads the e

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread mdipierro
> but as for automating the schema maintenance... if I create >   auth_user.Field('photo','upload') > instead of creating a 'photo' (string) and 'photo_blob' (blob) on the > same table, it should maybe create just 'photo' (string) and another > table called 'auth_user_photo' with one field and a r

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread NickFranceschina
on a related note... web apps rarely need to load the blob data at the same time as the record... the record should get loaded and then that will create a link/img on a page which will make a separate request for the blob. and if I've read correctly... GAE always pulls the entire object when you

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread NickFranceschina
OK... I had uploaded a 900+kb photo by mistake (thought I had uploaded 100k photo) also just realized that the schema for an "upload" Field on GAE includes an extra 'blob' type on the record (obviously, since we can't store files)... and my code was trying to convert records to JSON and blowing up

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread mdipierro
You have something too large in the session and the datastore refuses to store the session in the database. On Jun 21, 11:32 pm, NickFranceschina wrote: > I'm not sure what I'm doing wrong...   I've built a JSON service on > top of Web2py that uses Auth.login_bare() to authenticate via > AJAX...