[Zope] Strategy for taking site offline temporarily

Dieter Maurer dieter at handshake.de
Fri Feb 18 14:46:08 EST 2005


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


More information about the Zope mailing list