Uploaded the fix. please give it a try.

On Jun 9, 1:25 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> in update_fields and table[field].update
>
> should be
>
> in update_fields and table[fieldname].update
>
> will fix it tonight.
>
> On Jun 9, 1:02 pm, Fran <francisb...@googlemail.com> wrote:
>
> > On Jun 9, 6:27 pm, Fran <francisb...@googlemail.com> wrote:
>
> > > On Jun 9, 3:13 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > > > Uploading another version to trunk. Please give it another try
> > > r896 works fine - many thanks :)
>
> > Solves that issue but seems to break updates:
>
> > This is a ticket from Tools' register() (but it also happens on other
> > DB updates)
>
> > Traceback (most recent call last):
> >   File "C:\Bin\web2py\gluon\restricted.py", line 107, in restricted
> >     exec ccode in environment
> >   File "C:/Bin/web2py/applications/sahana/controllers/default.py",
> > line 59, in <module>
> >   File "C:/Bin/web2py/applications/sahana/models/00_db.py", line 453,
> > in <lambda>
> >     response._caller = lambda f: shn_sessions(f)
> >   File "C:/Bin/web2py/applications/sahana/models/00_db.py", line 452,
> > in shn_sessions
> >     return f()
> >   File "C:/Bin/web2py/applications/sahana/controllers/default.py",
> > line 13, in user
> >     return dict(form=auth(), module_name=module_name)
> >   File "C:\Bin\web2py\gluon\tools.py", line 440, in __call__
> >     return self.register()
> >   File "C:\Bin\web2py\applications\sahana\modules\sahana.py", line
> > 384, in register
> >     user[form.vars.id] = dict(registration_key='')
> >   File "C:\Bin\web2py\gluon\sql.py", line 1177, in __setitem__
> >     == key).update(**self._filter_fields(value)):
> >   File "C:\Bin\web2py\gluon\sql.py", line 2160, in update
> >     query = self._update(**update_fields)
> >   File "C:\Bin\web2py\gluon\sql.py", line 2146, in _update
> >     in update_fields and table[field].update
> > UnboundLocalError: local variable 'field' referenced before assignment
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to