<type 'exceptions.TypeError'> 'NoneType' object is not iterable
Traceback (most recent call last):
File "/home/boris/Work/deploy-web2py-local/gluon/restricted.py", line 217, in restricted
exec ccode in environment
File "/home/boris/Work/deploy-web2py-local/applications/cpfecys/models/db.py", line 70, in <module>
a = db.auth_user(db.auth_user.username == 'admin')
File "/home/boris/Work/deploy-web2py-local/gluon/dal.py", line 8829, in __call__
limitby=(0,1),for_update=for_update, orderby=orderby, orderby_on_limitby=False).first()
File "/home/boris/Work/deploy-web2py-local/gluon/dal.py", line 10335, in select
return adapter.select(self.query,fields,attributes)
File "/home/boris/Work/deploy-web2py-local/gluon/dal.py", line 1831, in select
return self._select_aux(sql,fields,attributes)
File "/home/boris/Work/deploy-web2py-local/gluon/dal.py", line 1812, in _select_aux
return processor(rows,fields,self._colnames,cacheable=cacheable)
File "/home/boris/Work/deploy-web2py-local/gluon/dal.py", line 2173, in parse
for (i,row) in enumerate(rows):
TypeError: 'NoneType' object is not iterable