[web2py] Re: field related to auth.user.id problem when user not logged in

2011-11-21 Thread Anthony
On Monday, November 21, 2011 10:38:27 AM UTC-5, thodoris wrote: > > Thanx for the help guys, what i did finally is > > db.videos.table.requires = IS_EMPTY_OR > (IS_IN_DB(db(db.table.author_id==auth.user_id), db.table.id, '% > (title)s')) > > What about displaying a BIG dropdown list of "tables" en

[web2py] Re: field related to auth.user.id problem when user not logged in

2011-11-21 Thread thodoris
Thanx for the help guys, what i did finally is db.videos.table.requires = IS_EMPTY_OR (IS_IN_DB(db(db.table.author_id==auth.user_id), db.table.id, '% (title)s')) What about displaying a BIG dropdown list of "tables" entries? Any help here ??? On Nov 21, 4:09 pm, Anthony wrote: > > But, accordi

[web2py] Re: field related to auth.user.id problem when user not logged in

2011-11-21 Thread Anthony
> > db.videos.table.requires = IS_IN_DB(db(db.table.author_id==auth.user.id), > db.table.id, '%(title)s') > Maybe db(db.table.author_id == (auth.user and auth.user.id)) That will return no records when there is no auth.user. Anthony