1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. | Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/home/www-data/web2py/applications/welcome/views/appadmin.html", line 175, in <module> {{if ram['bytes'] > 524287:}} File "/home/www-data/web2py/gluon/sqlhtml.py", line 3253, in __init__ r = represent(field, r or [], record) File "/home/www-data/web2py/gluon/sqlhtml.py", line 68, in represent return f(value) File "/home/www-data/web2py/gluon/packages/dal/pydal/helpers/methods.py", line 268, in __call__ if isinstance(db._adapter, GoogleDatastoreAdapter): TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types
Frames
File /home/www-data/web2py/applications/welcome/views/appadmin.html in <module> at line 175 code arguments variables File /home/www-data/web2py/gluon/packages/dal/pydal/helpers/methods.py in __call__ at line 268 code arguments variables Function argument list(self=<pydal.helpers.methods._repr_ref_list object>, value=[1L], row=None) Code listing263. 264. 265. 266. 267.
268. 269. 270. 271. 272. | if not value: return None from ..adapters import GoogleDatastoreAdapter refs = None db, id = self.ref._db, self.ref._id
if isinstance(db._adapter, GoogleDatastoreAdapter): def count(values): return db(id.belongs(values)).select(id) rx = range(0, len(value), 30) refs = reduce(lambda a, b: a & b, [count(value[i:i+30]) |
Variablesbuiltinisinstance | <built-in function isinstance> |
---|
db._adapter | <pydal.adapters.sqlite.SQLiteAdapter object> |
---|
db | <DAL uri="sqlite://storage.sqlite"> |
---|
GoogleDatastoreAdapter | None
|
---|
|