It would actually be trivial to add a checkbox to the sites.html page that is always checked (active) and when inactive stores the app name in disabled_apps.txt (or a better named file) and then the router ignores apps listed in this file.
On Sep 14, 5:03 pm, Richard Vézina <ml.richard.vez...@gmail.com> wrote: > The Anthony suggestion seems what you want. > > Don't know how hard or insecure it could be to implement a on/off button... > Having a kind of empty app or redirecting app for "off" application could be > deliver with web2py like the welcome app and the routes.py having a redirect > procedure to trigger if the app as a particular parameter setted like > auth.off=True... > > I don't know... > > It's pretty fancy for now I think ;-) > > Richard > > 2011/9/14 António Ramos <ramstei...@gmail.com> > > > > > > > > > I mean disable an app for all users. > > It would be nicer to have a button (On/Off) in the admin. > > Thank you > > > 2011/9/14 Anthony <abasta...@gmail.com> > > >> Are you saying you want to block specific users, or completely take the > >> entire application offline? If the latter, you could redirect all traffic > >> to > >> a static page with a message, either by configuring your web server, making > >> a change in routes.py, or adding a redirect() call in a model file of the > >> app (assuming the app error doesn't occur before the redirect call). > > >> Anthony > > >> On Wednesday, September 14, 2011 12:41:31 PM UTC-4, Ramos wrote: > > >>> Hello > >>> i dont know if this is a stupid question but imagine i have 10 apps > >>> running in my server > > >>> If i detect an error in one app and want do avoid users from loggin in > >>> what do i do. > >>> What is the best practice? > > >>> A button"Enable/Disable" would be great in admin > > >>> Thank you > > >>> António