Re: [web2py] if user is logged out

2011-01-12 Thread Bruno Rocha
Ops, Sorry, Copy & Paste mistake! forget my last mail. This the code def user(): if request.args(0) == 'logout': #do something here db(query).delete() return dict(form=auth()) -- Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] if user is logged out

2011-01-12 Thread Bruno Rocha
Do you mean this? # -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ## This is a samples controller ## - index is the default action of any application ## - user is requ

[web2py] if user is logged out

2011-01-12 Thread pk
hi togehter, how can i edit my own commands (for example i will delete something in a db table) if user get logged out? where can i do this? thanks peter