I do not understand. Can you show some code?

On Aug 31, 10:11 am, weheh <[email protected]> wrote:
> I'm taking the len(x) where x is an instance of an SQLRow object and
> I'm getting back what I'm looking for, which is the
> response.session_id, but I didn't expect to find it there!!!
>
> Coincidentally, retrieving x.myfield gets ticketed:
>
> Traceback (most recent call last):
>   File "C:\web2py\gluon\restricted.py", line 186, in restricted
>     exec ccode in environment
>   File "C:\web2py\applications\myapp/views\this/that.html", line 330,
> in <module>
>   File "C:\web2py\gluon\globals.py", line 105, in write
>     self.body.write(xmlescape(data))
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\sql.py", line 717, in __getattr__
>     return dict.__getitem__(self,key)
> KeyError: 'xml'
>
> Lastly, I wasn't expecting, either, that x.myfield would actually
> work. I was thinking it would be x.mytable.myfield that would work,
> but it doesn't. I get an assert that myfield didn't exist. I looked in
> the app tables and myfield is definitely there.
>
> I'm stumped =(

Reply via email to