After upgrading to 1.95.1 (on windows, from source) get error:
Traceback (most recent call last):
File "...\gluon\restricted.py", line 181, in restricted
exec ccode in environment
File ".../controllers/racun.py"
<http://127.0.0.1:8000/admin/default/edit/test7/controllers/racun.py>, line 65,
in <module>
File "...\gluon\globals.py", line 133, in <lambda>
self._caller = lambda f: f()
File "...\gluon\tools.py", line 2335, in f
return action(*a, **b)
File ".../controllers/racun.py", line 26, in racun_uredi
if form.accepts(request.vars, session):
File "...\gluon\sqlhtml.py", line 1200, in accepts
self.table._db(self.table.id == self.record.id).update(**fields)
File "...\gluon\dal.py", line 5173, in update
fields = self.db[tablename]._listify(update_fields,update=True)
File "...\gluon\dal.py", line 4464, in _listify
raise SyntaxError, 'Field %s does not belong to the table' % name
SyntaxError: Field delete_this_record does not belong to the table
in controller i change
crud.update()
to
crud.update( ,deletable=False)
and the error is gone
but in the form with upload fields i now get:
Traceback (most recent call last):
File "...\gluon\restricted.py", line 181, in restricted
exec ccode in environment
File ".../controllers/izobrazevanje.py", line 98, in <module>
File "...\gluon\globals.py", line 133, in <lambda>
self._caller = lambda f: f()
File "...\gluon\tools.py", line 2335, in f
return action(*a, **b)
File ".../controllers/izobrazevanje.py", line 15, in izobrazevanje_uredi
if form.accepts(request.vars, session):
File "...\gluon\sqlhtml.py", line 1200, in accepts
self.table._db(self.table.id == self.record.id).update(**fields)
File "...\web2py\gluon\dal.py", line 5173, in update
fields = self.db[tablename]._listify(update_fields,update=True)
File "...\gluon\dal.py", line 4464, in _listify
raise SyntaxError, 'Field %s does not belong to the table' % name
SyntaxError: Field logo_highres__delete does not belong to the table
logo_highres is upload filed
this was not a problem in previous version (1.94)