Hi, A couple of questions...: a) is there a way of sending an error to a default object other than standard_error_message? For example I would like errors of type x to be handled by one object and y by another. Obviously most objects should have their own error handling that makes sense, but a there are few special cases when I can see it being useful. The most obvious method is to put a big dtml if inside the standard_error_message and send the errors to those objects. But does anyone know of a more elegant solution (if not I can see a potential product in there)... b) anyone know a way of restricting the super_user to a domain? Zope allows you to restrict users, but I would like to tighten down Zope a little more by only allowing super_users from within our domain... Thanks in advance. Andy McKay
Hi Andy Andy wrote:
Hi,
A couple of questions...:
a) is there a way of sending an error to a default object other than standard_error_message? For example I would like errors of type x to be handled by one object and y by another. Obviously most objects should have their own error handling that makes sense, but a there are few special cases when I can see it being useful.
My be <dtml-try> is what you want?
The most obvious method is to put a big dtml if inside the standard_error_message and send the errors to those objects. But does anyone know of a more elegant solution (if not I can see a potential product in there)...
b) anyone know a way of restricting the super_user to a domain? Zope allows you to restrict users, but I would like to tighten down Zope a little more by only allowing super_users from within our domain...
Look for the options of zpasswd.py. You can run it interactively with "python zpasswd access" at the last step you are asked for valid domains. HTH Tino Wildenhain
Hi Tino
My be <dtml-try> is what you want?
A dtml try works well in dtml in a file. But take an error such as "object not found" (analogous to 404) or some other error that does not specifically call a method. Or does it? This is the question I guess. Yes I use try and except's quite a bit.
Look for the options of zpasswd.py. You can run it interactively with "python zpasswd access" at the last step you are asked for valid domains.
Oops that one was obvious. Sorry!
participants (3)
-
Andy -
Andy McKay -
Tino Wildenhain