I get the same thing on a newly created app when running from trunk:
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 188, in restricted
exec ccode in environment
File "C:\web2py\applications\crashtest/views\default/index.html",
line 27, in <module>
TypeError: 'XML' object is unsubscriptable
On Aug 21, 9:58 pm, mdipierro <[email protected]> wrote:
> Which version. If not web2py stable, please check latest trunk.
>
> On Aug 21, 8:33 pm, Jose <[email protected]> wrote:
>
> > Hi,
>
> > (I can not find the thread where it was this error)
>
> > From admin create a new application: apptest
>
> > go to:http://127.0.0.1:8000/apptest
>
> > produces the following error:
>
> > TypeError: 'XML' object is unsubscriptable
>
> > if type(code) == types.CodeType:
> > ccode = code
> > else:
> > ccode = compile2(code,layer)
>
> > exec ccode in environment
>
> > except HTTP:
> > raise
> > except Exception:
> > # XXX Show exception in Wing IDE if running in debugger