*Traceback (most recent call last):*
File "/Users/sugizo/project/python/web2py/gluon/restricted.py", line 219,
in restricted
exec(ccode, environment)
File
"/Users/sugizo/project/python/web2py/applications/test/controllers/install_demo.py",
line 490, in <module>
File "/Users/sugizo/project/python/web2py/gluon/globals.py", line 419, in
<lambda>
self._caller = lambda f: f()
File
"/Users/sugizo/project/python/web2py/applications/test/controllers/install_demo.py",
line 205, in index
redemption_unit_plan = 0)
File
"/Users/sugizo/project/python/web2py/gluon/packages/dal/pydal/objects.py",
line 750, in insert
row = self._fields_and_values_for_insert(fields)
File
"/Users/sugizo/project/python/web2py/gluon/packages/dal/pydal/objects.py",
line 728, in _fields_and_values_for_insert
'Table: missing required field: %s' % name)
RuntimeError: Table: missing required field: supplier
old problem in 2.15.x before insert can't execute with required = True
(2.14.x version is fine for before insert callback to work with required =
True)
temporary solution is set required = False, is this the solution for the
future ?
best regards,
stifan
--
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.