belay that :) was using sql.py's Field with dal.py's DAL
-Thadeus On Tue, Feb 2, 2010 at 11:53 AM, Thadeus Burgess <thade...@thadeusb.com> wrote: > migrate=True > > self.db.define_table('settings', > Field('key'), > Field('name'), > Field('value', 'text'), > Field('description', 'text'), > migrate=migrate > ) > > First error testing out new dal.py > > Traceback (most recent call last): > File "/home//Applications/web2py/gluon/restricted.py", line 173, in > restricted > exec ccode in environment > File "/home//Applications/web2py/applications//models/common.py", > line 63, in <module> > configure = utils.Configure(db, migrate=migrate_db) > File "/home//Applications/web2py/applications//modules/utils.py", > line 109, in __init__ > self.define_tables(migrate=migrate) > File "/home//Applications/web2py/applications//modules/utils.py", > line 121, in define_tables > migrate=migrate > File "/home//Applications/web2py/gluon/dal.py", line 2556, in define_table > **dict(primarykey=args.get('primarykey',None))) > File "/home//Applications/web2py/gluon/dal.py", line 2788, in __init__ > 'define_table argument is not a Field: %s' % field > SyntaxError: define_table argument is not a Field: <no table>.key > > -Thadeus > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.