Hi!
Something odd seams happen passing from pydal 16.03 to a newer version
using json field and postgresql adapter.
This is the traceback I get from the newer version when exploring table
data through admin:
Traceback (most recent call last):
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/restricted.py",
line 227, in restricted
exec ccode in environment
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/applications/ValisBuggerTracker/controllers/appadmin.py",
line 703, in <module>
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/globals.py",
line 417, in <lambda>
self._caller = lambda f: f()
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/applications/ValisBuggerTracker/controllers/appadmin.py",
line 325, in update
2)).select().first()
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/objects.py",
line 2045, in select
return adapter.select(self.query, fields, attributes)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/adapters/base.py",
line 746, in select
return self._select_aux(sql, fields, attributes, colnames)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/adapters/base.py",
line 727, in _select_aux
return processor(rows, fields, colnames, cacheable=cacheable)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/adapters/base.py",
line 305, in parse
for row in rows
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/adapters/base.py",
line 229, in _parse
value = self.parse_value(value, fit, ft, blob_decode)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/adapters/base.py",
line 196, in parse_value
return self.parser.parse(value, field_itype, field_type)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/parsers/__init__.py",
line 101, in parse
return self.registered[field_itype](value, field_type)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/parsers/__init__.py",
line 76, in __call__
return self.call(value, field_type)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/parsers/__init__.py",
line 73, in _call
return self.f(self.parser, value)
File
"/home/manuele/development/web/web2py/web2py_R-2.14.6/gluon/packages/dal/pydal/parsers/base.py",
line 129, in _json
raise RuntimeError('json data not a string')
RuntimeError: json data not a string
The same table downgrading the pydal to v16.03 give absolutely no problems.
The strange thing is that reloading the webserver I can reload the page
with no errors but an exception is raised exploring a single record...
again if I reload the framework I can see the single record data but
going back to the tabular view the previous exception is raised.
Please ask for details if needed.
Cheers
Manuele
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.