oops.

requires = IS_IN_DB('instansie.id','%(naam)s',multiple= True,orderby =
'instansie.naam')

should be

requires = IS_IN_DB(db,'instansie.id','%(naam)s',multiple=
True,orderby = 'instansie.naam')

On Nov 19, 1:26 am, Johann Spies <johann.sp...@gmail.com> wrote:
> On 18 November 2010 14:07, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
>
>
> > What is your requires statement?
>
> > It was included in my previous post:
>
> > > The model:
>
> > > db.define_table('instansie_nuwename',
> > >                 Field('nuutste', db.instansie,
> > >                       requires = IS_IN_DB(db, 'instansie.id','%(naam)s',
> > > orderby = 'instansie.naam' )),
> > >                 Field('vorige', 'list:reference instansie',
> > >                       requires = IS_IN_DB('instansie.id
> > ','%(naam)s',multiple
> > > = True,
> > >                                           orderby = 'instansie.naam' )),
> > >                 Field('jaar', label = 'Tot watter jaar?'),
> > >                 signature)
> > > db.instansie_nuwename.nuutste.represent = lambda id:
> > db.instansie(id).naam
>
> Regards
> Johann
>
> --
>  May grace and peace be yours in abundance through the full knowledge of God
> and of Jesus our Lord!  His divine power has given us everything we need for
> life and godliness through the full knowledge of the one who called us by
> his own glory and excellence.
>                                                     2 Pet. 1:2b,3a

Reply via email to