Re: [Zope] Strategy for taking site offline temporarily
You could use an access rule to redirect non-Manager users to a work-in-progress page; you could set a boolean property on the root folder, check its value before redirecting. In this way, you can turn redirection on and off at will. On Fri, 18 Feb 2005 01:10:59 -0400, David Pratt <fairwinds@eastlink.ca> wrote:
What is the best strategy for taking a zope site temporarily offlineso visitors are provided with friendly message while manager (or other intermediate manager roles) can still view.
-- Roberto Lupi http://www.lupi-software.com/ -- Roberto Lupi http://www.lupi-software.com/
Hi Roberto. This is exactly the type of strategy I was looking for. Thank you for pointing this out. I will work with this today. It should be fairly straight forward to implement. Regards, David On Friday, February 18, 2005, at 03:19 AM, Roberto Lupi wrote:
You could use an access rule to redirect non-Manager users to a work-in-progress page; you could set a boolean property on the root folder, check its value before redirecting. In this way, you can turn redirection on and off at will.
On Fri, 18 Feb 2005 01:10:59 -0400, David Pratt <fairwinds@eastlink.ca> wrote:
What is the best strategy for taking a zope site temporarily offlineso visitors are provided with friendly message while manager (or other intermediate manager roles) can still view.
-- Roberto Lupi http://www.lupi-software.com/
-- Roberto Lupi http://www.lupi-software.com/ _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Roberto Lupi wrote at 2005-2-18 08:19 +0100:
You could use an access rule to redirect non-Manager users to a work-in-progress page; you could set a boolean property on the root folder, check its value before redirecting. In this way, you can turn redirection on and off at will.
This has a bit of a problem: During the AccessRule execution, authentication has not taken place. Therefore, it is not so easy to determine whether this is a Manager or not. You can use "REMOTE_ADDR" instead. -- Dieter
participants (3)
-
David Pratt -
Dieter Maurer -
Roberto Lupi