Thanks Gary, just fixed it in 1.90.4
On Dec 19, 3:06 pm, Gary Herron <[email protected]> wrote: > In 1.90.3, my SQLFORM calls are failing with > > Traceback(most recent call last): > > File"/home/gherron/Dropbox/projects/web2py/gluon/restricted.py",line188,inrestricted > execccodeinenvironment > > File"/home/gherron/Dropbox/projects/web2py/applications/ServeITS/controllers/default.py",line233,in<module> > > File"/home/gherron/Dropbox/projects/web2py/gluon/globals.py",line95,in<lambda> > self._caller=lambdaf:f() > > File"/home/gherron/Dropbox/projects/web2py/applications/ServeITS/controllers/default.py",line209,inAJAXmember > form=SQLFORM(db.Member,request.vars.record,_class='formMember') > > File"/home/gherron/Dropbox/projects/web2py/gluon/sqlhtml.py",line792,in__init__ > inp=self.widgets.options.widget(field,default) > > File"/home/gherron/Dropbox/projects/web2py/gluon/sqlhtml.py",line205,inwidget > options=requires[0].options() > > File"/home/gherron/Dropbox/projects/web2py/gluon/validators.py",line424,inoptions > self.build_set() > > File"/home/gherron/Dropbox/projects/web2py/gluon/validators.py",line407,inbuild_set > fields= [self.dbset.db[ktable][k]forkin self.fields] > NameError:globalname'ktable'is notdefined > > I (think I) fixed it by replacing two occurrences (lines 405 and 407) > of "ktable" with "self.ktable". > > My app is working with those fixes, but since I have not attempted to > figure out what that code is actually doing, I'm hoping that someone > who knows the code can look. > > Gary Herron > > On 12/19/2010 08:43 AM, mdipierro wrote: > > > > > All the issues raised should now be fixed in 1.90.3 > > > On Dec 19, 10:14 am, mdipierro<[email protected]> wrote: > >> fixing in trunk. > > >> On Dec 19, 5:28 am, selecta<[email protected]> wrote: > > >>> self reference with IS_IN_DB pointing to self > >>> Field('parent', 'reference mytable', requires = > >>> IS_EMPTY_OR(IS_IN_DB(db,'mytable.id','%(name)s'))), > >>> this does not work any more > >>> On Dec 18, 8:38 pm, mdipierro<[email protected]> wrote: > >>>> This is a major - major release mostly because it includes the new > >>>> DAL. > >>>> It is supposed to be 100% backward compatible but cleaner, and more > >>>> readable. We have fixed every known issue. If 1.90.1 breaks you DAL > >>>> queries, please report it asap so that it can be addressed sooner. > >>>> It also includes a lot of new features as described below. > >>>> Changelog 1.90.1: > >>>> - new DAL (complete rewrite of the web2py DAL is more modular) > >>>> - rewrite has fail safe reload, thanks Jonathan > >>>> - better CAS with v2 support, thanks Olivier ROCH VILATO > >>>> - better markmin2latex > >>>> - session.connect(separate=True) to handle many session files, thanks > >>>> huaiyu wang > >>>> - changed bahvior of impersonate (more secure, can generate form or > >>>> used as API) > >>>> - new rocket, thanks Tim > >>>> - new pyfpdf > >>>> - no more old style classes (we did some cleanup in the past sbut we > >>>> had missed a few). > >>>> - experimental couchdb support in new dal (only insert, select, update > >>>> by id) > >>>> - mysql support out of the box via pymysql > >>>> - SQLITABLE(...,headers='labels') thanks Bruno > >>>> - optional: digitally signed URLs, thanks Brian Meredyk > >>>> - minor bug fixes > > -- > Gary Herron, PhD. > Department of Computer Science > DigiPen Institute of Technology > (425) 895-4418

