On Aug 21, 2010, at 10:02 PM, mdipierro wrote: > Did you try 819?
I think XML needs this: def __getitem__(self, key): return str(self).__getitem__(key) > > Massimo > > On Aug 21, 11:01 pm, "mr.freeze" <nat...@freezable.com> wrote: >> 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 <mdipie...@cs.depaul.edu> wrote: >> >>> Which version. If not web2py stable, please check latest trunk. >> >>> On Aug 21, 8:33 pm, Jose <jjac...@gmail.com> 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