Thats what I get for blindly copying code...
my bad

On Oct 9, 4:05 pm, Anthony <[email protected]> wrote:
> What is the definition of the 'project' table? Does it include a 'title'
> field (which is referenced in your IS_IN_DB validator)?
>
>
>
>
>
>
>
> On Sunday, October 9, 2011 10:51:59 AM UTC-4, Guy Nesher wrote:
>
> > Thats the table I'm using :
>
> > db.define_table('file',
> >     Field('filelink','upload'),
> >     Field('name', requires=IS_NOT_EMPTY()),
> >     Field('filename'),
> >     Field('description', 'string'),
> >     Field('project_id',db.project),
> >     Field('createdby', db.auth_user, default=auth.user_id),
> >     Field('createdon', 'datetime', update=request.now))
>
> > db.file.project_id.requires = IS_IN_DB(db, db.project.id, '%(title)s')
> > db.file.project_id.writable = db.file.project_id.readable = False
> > db.file.createdby.writable = db.file.createdby.readable = False
> > db.file.createdon.writable = db.file.createdon.readable = False
>
> > On Oct 9, 3:46 pm, Anthony <[email protected]> wrote:
> > > What's your model code?

Reply via email to