The -M import models. Somewere in one of your models there you call the attribute lenght of a dict object (obj.len) and it does not exist.
Massimo On Dec 31 2009, 8:31 pm, Sujan Shakya <suzan.sha...@gmail.com> wrote: > When I run "python web2py.py -M -S mywiki", I get the following error: > > In [9]: for i in range(5): print i > <ERROR: 'dict' object has no attribute 'len'> > 0 > 1 > 2 > 3 > 4 > > When I run "python web2py.py -S mywiki", the above code works though. > > Does anyone know the fix for this ? > > Thanks. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.