On Thu, May 31, 2012 at 8:27 PM, Tomas Schertel <[email protected]> wrote:
> 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
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.