[web2py] Re: error on crud.update delete
just upgraded to 1.96.1 and the error is gone, the code was not special, but too complicated to post thanks for fixing this :D On Jun 1, 6:11 pm, Massimo Di Pierro wrote: > BTW... are you running stable. Can you try trunk. I remeber fixing > something related to this. > > On May 31, 3:46 pm, selecta wrote: > > > > > ERROR:web2py:Traceback (most recent call last): > > File "/home/select/Dev/web2py/gluon/restricted.py", line 181, in > > restricted > > exec ccode in environment > > File "/home/select/Dev/web2py/applications/pyMantis/controllers/ > > plugin_whishlist.py", line 118, in > > File "/home/select/Dev/web2py/gluon/globals.py", line 133, in > > > > self._caller = lambda f: f() > > File "/home/select/Dev/web2py/gluon/tools.py", line 2335, in f > > return action(*a, **b) > > File "/home/select/Dev/web2py/applications/pyMantis/controllers/ > > plugin_whishlist.py", line 68, in edit > > if form.accepts(request.vars, session): > > File "/home/select/Dev/web2py/gluon/sqlhtml.py", line 1200, in > > accepts > > self.table._db(self.table.id == self.record.id).update(**fields) > > File "/home/select/Dev/web2py/gluon/dal.py", line 5173, in update > > fields = self.db[tablename]._listify(update_fields,update=True) > > File "/home/select/Dev/web2py/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 > > > is this somehow my fault? not sure how to debug
[web2py] Re: error on crud.update delete
BTW... are you running stable. Can you try trunk. I remeber fixing something related to this. On May 31, 3:46 pm, selecta wrote: > ERROR:web2py:Traceback (most recent call last): > File "/home/select/Dev/web2py/gluon/restricted.py", line 181, in > restricted > exec ccode in environment > File "/home/select/Dev/web2py/applications/pyMantis/controllers/ > plugin_whishlist.py", line 118, in > File "/home/select/Dev/web2py/gluon/globals.py", line 133, in > > self._caller = lambda f: f() > File "/home/select/Dev/web2py/gluon/tools.py", line 2335, in f > return action(*a, **b) > File "/home/select/Dev/web2py/applications/pyMantis/controllers/ > plugin_whishlist.py", line 68, in edit > if form.accepts(request.vars, session): > File "/home/select/Dev/web2py/gluon/sqlhtml.py", line 1200, in > accepts > self.table._db(self.table.id == self.record.id).update(**fields) > File "/home/select/Dev/web2py/gluon/dal.py", line 5173, in update > fields = self.db[tablename]._listify(update_fields,update=True) > File "/home/select/Dev/web2py/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 > > is this somehow my fault? not sure how to debug
[web2py] Re: error on crud.update delete
You'll need to show your code as well. On 31 Май, 23:46, selecta wrote: > ERROR:web2py:Traceback (most recent call last): > File "/home/select/Dev/web2py/gluon/restricted.py", line 181, in > restricted > exec ccode in environment > File "/home/select/Dev/web2py/applications/pyMantis/controllers/ > plugin_whishlist.py", line 118, in > File "/home/select/Dev/web2py/gluon/globals.py", line 133, in > > self._caller = lambda f: f() > File "/home/select/Dev/web2py/gluon/tools.py", line 2335, in f > return action(*a, **b) > File "/home/select/Dev/web2py/applications/pyMantis/controllers/ > plugin_whishlist.py", line 68, in edit > if form.accepts(request.vars, session): > File "/home/select/Dev/web2py/gluon/sqlhtml.py", line 1200, in > accepts > self.table._db(self.table.id == self.record.id).update(**fields) > File "/home/select/Dev/web2py/gluon/dal.py", line 5173, in update > fields = self.db[tablename]._listify(update_fields,update=True) > File "/home/select/Dev/web2py/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 > > is this somehow my fault? not sure how to debug