[web2py] Re: Need help... testing new DAL

2012-10-11 Thread Matt
Just pulled now. Fixed! Great thanks. On Thursday, October 11, 2012 6:20:45 AM UTC+13, Massimo Di Pierro wrote: > > Can you try again? I think I fixed this in trunk. > > > On Tuesday, 2 October 2012 22:08:58 UTC-5, Matt wrote: >> >> Just testing it now, Getting an error on GAE + CloudSQL: >> >> F

[web2py] Re: Need help... testing new DAL

2012-10-10 Thread Massimo Di Pierro
Can you try again? I think I fixed this in trunk. On Tuesday, 2 October 2012 22:08:58 UTC-5, Matt wrote: > > Just testing it now, Getting an error on GAE + CloudSQL: > > File "/Projects/www//applications/app/models/db.py", line 45, in > auth.define_tables() > File "/Projects/www/gluon/too

[web2py] Re: Need help... testing new DAL

2012-10-09 Thread Matt
Any idea about this? Currently I can't perform migrations on GAE. On Wednesday, October 3, 2012 4:08:58 PM UTC+13, Matt wrote: > > Just testing it now, Getting an error on GAE + CloudSQL: > > File "/Projects/www//applications/app/models/db.py", line 45, in > auth.define_tables() > File "/P

[web2py] Re: Need help... testing new DAL

2012-10-02 Thread Matt
Just testing it now, Getting an error on GAE + CloudSQL: File "/Projects/www//applications/app/models/db.py", line 45, in auth.define_tables() File "/Projects/www/gluon/tools.py", line 1506, in define_tables format='%(first_name)s %(last_name)s (%(id)s)')) File "/Projects/www/gluon/d

[web2py] Re: Need help... testing new DAL

2012-10-02 Thread Adi
light tested against 3 apps and all seems to work fine so far. Adnan On Monday, October 1, 2012 10:32:16 PM UTC-4, Massimo Di Pierro wrote: > > There is a big change in DAL. > > a = DAL(uri) > b = DAL(uri) > > now "a is b" because DAL is a singleton (almost). It is a thread local > singleton as

[web2py] Re: Need help... testing new DAL

2012-10-02 Thread João Saraiva
More on this problem... I was able to overcome the "cannot duplicate a singleton" error by explicitly closing each db on the tests' tearDown: - db.close(action=None) - I needed to include action=None, otherwise I'd get the following error: - Traceback (most re

[web2py] Re: Need help... testing new DAL

2012-10-02 Thread João Saraiva
Hello, I am having problems with the new Singleton DAL feature and a web-app that I had already working correctly with web2py. Although the web-app itself runs ok (I can navigate the browser to it, and the app runs without issues when used from the browser), it crashes when I run unit-tests on