[Zope] Custom unauthorized message

Andy McKay andym@ActiveState.com
Tue, 17 Apr 2001 10:59:08 -0700


Yes, make your method "standard_unauthorized_message"....

and then call it from "standard_error_message" when an Unauthorized error
occurs:

<dtml-if "_.str(error_type)=3D=3D'Unauthorized'">
  <dtml-var standard_unauthorized_message>
</dtml-if>

Cheers.
--
  Andy McKay.


----- Original Message -----
From: <Menard.Jean-Francois@hydro.qc.ca>
To: <zope@zope.org>
Sent: Tuesday, April 17, 2001 10:25 AM
Subject: [Zope] Custom unauthorized message


Is there a simple way to define a custom "Unauthorized" message, like a
"Standard Unauthorized Message" dtml method?  If not, why not?



Jean-Fran=E7ois M=E9nard
Intranet DPAS
Pratiques d'affaires et orientations
*        (514) 840-3000  poste 3939
*  (514) 840-5585
*  menard.jean-francois@hydro.qc.ca
*         855 Ste-Catherine est, 6e =E9tage
              Montr=E9al, Qu=E9. H2L 4P5