That was an experiment. I reverted it. Thanks for checking.

On Sep 12, 6:43 am, Martín Mulone <mulone.mar...@gmail.com> wrote:
> Yes I confirm this
>
> *__builtins__**.**__import__ = __builtin__.__import__** ### WHY?*
>
> I think you also think this is gonna break some things :D
>
> 2011/9/12 Brian M <bmere...@gmail.com>
>
>
>
>
>
>
>
>
>
> > Massimo,
>
> > The change made to gluon/compileapp.py in rev 
> > 894137606632<http://code.google.com/p/web2py/source/detail?r=8941376066324ba710a2d...>appears
> >  to breakboth web2py under worth Windows 7 and Ubuntu 11.04.  The failure 
> > is such
> > that a ticket is immediately created and when you try to view the ticket you
> > actually get an error too.  After undoing the change, the ticket can be
> > viewed and says:
>
> > Traceback (most recent call last):
> >   File "C:\Users\Brian\Documents\development\web2py\google hg 
> > repo\trunk\gluon\main.py", line 489, in wsgibase
> >     serve_controller(request, response, session)
> >   File "C:\Users\Brian\Documents\development\web2py\google hg 
> > repo\trunk\gluon\main.py", line 188, in serve_controller
> >     environment = build_environment(request, response, session)
> >   File "C:\Users\Brian\Documents\development\web2py\google hg 
> > repo\trunk\gluon\compileapp.py", line 269, in build_environment
> >     __builtins__['__import__'] = __builtin__.__import__ ### WHY?
> > AttributeError: 'dict' object has no attribute '__import__'
>
> > The new scheduler (the latest trunk rev 
> > 16e51fec2980<http://code.google.com/p/web2py/source/detail?r=16e51fec2980146fee2a1...>).
> > The same traceback happens under both Windows 7 and Ubuntu 11.04
>
> > C:\Users\Brian\Documents\development\web2py\google hg repo\trunk>python
> > web2py.p
> > y -K scheduler
> > web2py Web Framework
> > Created by Massimo Di Pierro, Copyright 2007-2011
> > Version 1.98.2 (2011-09-11 20:21:15)
> > Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
> > starting scheduler for "scheduler"...
> > Currently running 1 scheduler processes
> > Processes started
> > Process Process-1:
> > Traceback (most recent call last):
> >   File "C:\Python26\lib\multiprocessing\process.py", line 232, in
> > _bootstrap
> >     self.run()
> >   File "C:\Python26\lib\multiprocessing\process.py", line 88, in run
> >     self._target(*self._args, **self._kwargs)
> >   File "C:\Users\Brian\Documents\development\web2py\google hg
> > repo\trunk\gluon\s
> > hell.py", line 189, in run
> >     _env = env(a, c=c, import_models=import_models)
> >   File "C:\Users\Brian\Documents\development\web2py\google hg
> > repo\trunk\gluon\s
> > hell.py", line 127, in env
> >     environment = build_environment(request, response, session)
> >   File "C:\Users\Brian\Documents\development\web2py\google hg
> > repo\trunk\gluon\c
> > ompileapp.py", line 269, in build_environment
> >     __builtins__.__import__ = __builtin__.__import__ ### WHY?
> > AttributeError: 'dict' object has no attribute '__import__'
>
> > What issue was the change from __builtins__.__import__ to
> > __builtins['__import__'] supposed to fix?  I've been using web2py with
> > Windows 7 without a problem.
>
> > ~Brian
>
> --
>  http://martin.tecnodoc.com.ar

Reply via email to