Yes it does... adding to trunk. I am surprised this never come up before. Thanks.
Massimo On Apr 9, 11:21 am, RipRyness <ripryn...@gmail.com> wrote: > Could this be a bug in dal.py? > > Does 'polymodel' need to be in this list? > > ... > def define_table( > ... > for key in args: > if key not in [ > 'migrate', > 'primarykey', > 'fake_migrate', > 'format', > 'trigger_name', > 'sequence_name']: > > On Apr 8, 10:33 pm, RipRyness <ripryn...@gmail.com> wrote: > > > > > > > > > Dug up some code I did last summer. Thought I'd dust it off and > > upgrade it's web2py libraries. It is a GAE app. I am getting an > > error on the following code: > > > db.define_table('regform', > > Field('form_type'), > > Field('url_id', requires=[IS_NOT_IN_DB(db, 'account.org_id', > > error_message=T('id taken; choose another')), > > IS_NOT_EMPTY(error_message=T('value required')), IS_MATCH('^[a-zA- > > Z0-9_]+$', error_message='can only contain characters A-Z, 0-9, or > > _')], label='Church ID'), > > Field('url_id_norm',compute=lambda r: r['org_id'].lower()), > > > Field('created_by',db.auth_user,default=me,writable=False,readable=False), > > > Field('modified_on','datetime',default=request.now,update=request.now,writa > > ble=False,readable=False), > > Field('account', db.account, default=session.account, > > writable=False,readable=False), > > Field('version',default=db_version,writable=False,readable=False), > > polymodel=True) > > > Error is: > > invalid table "regform" attribute: polymodel