web.listget error

55 views
Skip to first unread message

Tomas Schertel

unread,
May 31, 2012, 10:57:49 AM5/31/12
to we...@googlegroups.com
I calling web.listget and I'm receiving this error:

<type 'exceptions.AttributeError'> at /login
IterBetter instance has no attribute '__len__'
Python C:\Python27\lib\site-packages\web\utils.py in listget, line 827

This is how I call it:

web.listget(db.select('users', vars=dict(email=email), where='email = $email'), 0, {})

How can I solve this?

Thx.

Anand Chitipothu

unread,
May 31, 2012, 9:30:28 PM5/31/12
to we...@googlegroups.com
result = db.select('users', vars=dict(email=email), where='email = $email').list()
web.listget(result, 0, {})

Anand

Tomas Schertel

unread,
Jun 1, 2012, 10:51:18 PM6/1/12
to we...@googlegroups.com


Em quinta-feira, 31 de maio de 2012 22h30min28s UTC-3, Anand escreveu:

I calling web.listget and I'm receiving this error:

<type 'exceptions.AttributeError'> at /login
IterBetter instance has no attribute '__len__'
Python C:\Python27\lib\site-packages\web\utils.py in listget, line 827

This is how I call it:

web.listget(db.select('users', vars=dict(email=email), where='email = $email'), 0, {})

How can I solve this?

result = db.select('users', vars=dict(email=email), where='email = $email').list()
web.listget(result, 0, {})

Anand


Thanks Anand.
It worked,
Reply all
Reply to author
Forward
0 new messages