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, -- You received this message because you are subscribed to the Google Groups "web.py" group. To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/WYIpK-pzLMQJ. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.