BTW: where are you defining 'db' ? in db.py on the root of /models ?

On Wed, Aug 17, 2011 at 11:56 AM, Carlos <carlosgali...@gmail.com> wrote:

> Hi Massimo (or others),
>
> This is one of the many errors I can get by executing concurrent web
> requests from different browsers ...
>
> web2py™ Version 1.98.2 (2011-08-16 12:27:18)
> Python Python 2.6.4: C:\Python26\python.exe
> Traceback
>
> Traceback (most recent call last):
>   File "C:\web2py\gluon\restricted.py", line 194, in restricted
>     exec ccode in environment
>   File "C:/web2py/applications/nube/controllers/web.py", line 242, in
> <module>
>   File "C:\web2py\gluon\globals.py", line 145, in <lambda>
>     self._caller = lambda f: f()
>   File "C:/web2py/applications/nube/controllers/web.py", line 28, in site
>     def site(): return __web()
> ... many other calls to models ...
> NameError: global name 'db' is not defined
>
> <type 'exceptions.NameError'>(global name 'db' is not defined)
>
>
> Note that NONE of these errors occur when there's no concurrency.
>
> Remember that these concurrency errors are occurring in my local
> environment (not yet in server) on win7, with postgresql and rocket.
>
> I am not ready yet to provide my complete web2py environment (models), they
> are huge, and I haven't had the chance to prepare something much smaller ...
> but I hope someone out there (Massimo?) can help me fix these show-stopper
> problems.
>
> Any clues?, thanks,
>
>    Carlos
>
>


-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Reply via email to