Re: [web2py] onlinestatus

2011-01-05 Thread Richard Vézina
On Wed, Jan 5, 2011 at 8:14 AM, Arun K.Rajeevan wrote: > On Tuesday, January 4, 2011 3:05:46 PM UTC-5, Richard wrote: > >> >> >> On Mon, Jan 3, 2011 at 5:13 PM, pk wrote: >> >>> hi together, >>> >>> i have a function for the onlineuser: >>> >>> usersall=db(db.online.last_visit>time.time()-dt) >>

Re: [web2py] onlinestatus

2011-01-05 Thread Arun K.Rajeevan
On Tuesday, January 4, 2011 3:05:46 PM UTC-5, Richard wrote: > > > On Mon, Jan 3, 2011 at 5:13 PM, pk wrote: > >> hi together, >> >> i have a function for the onlineuser: >> >> usersall=db(db.online.last_visit>time.time()-dt) > > (db.online.user_id==db.auth_user.id).select(db.auth_user.ALL) >> >

Re: [web2py] onlinestatus

2011-01-04 Thread Richard Vézina
On Mon, Jan 3, 2011 at 5:13 PM, pk wrote: > hi together, > > i have a function for the onlineuser: > > usersall=db(db.online.last_visit>time.time()-dt) (db.online.user_id==db.auth_user.id).select(db.auth_user.ALL) > This line should be : db(db.online.user_id==db.auth_user.id).select(db.auth_u

Re: [web2py] onlinestatus

2011-01-04 Thread Richard Vézina
The model are missing for db.online Richard On Mon, Jan 3, 2011 at 5:13 PM, pk wrote: > hi together, > > i have a function for the onlineuser: > > usersall=db(db.online.last_visit>time.time()-dt) > (db.online.user_id==db.auth_user.id).select(db.auth_user.ALL) > return TABLE(*[TD(user.user_name)

[web2py] onlinestatus

2011-01-03 Thread pk
hi together, i have a function for the onlineuser: usersall=db(db.online.last_visit>time.time()-dt) (db.online.user_id==db.auth_user.id).select(db.auth_user.ALL) return TABLE(*[TD(user.user_name) for user in usersall]) but i will to get all the onlineuser which are friends of mine. here is my fr