Here Chris, I'll try to solve your pain (untested):

from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('Products').declarePublic('Catalog')
ModuleSecurityInfo('Products.Catalog').declarePublic('CatalogError')

It's not so bad.

- C


----- Original Message -----
From: "Chris Withers" <[EMAIL PROTECTED]>
To: "Evan Simpson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 9:02 AM
Subject: Re: [Zope-dev] Re: Grrr... Python Scripts


> Evan Simpson wrote:
> >
> > Use the same security process as providing access to anything Zope
doesn't
> > already expose.
>
> Waaaagh! :~(
>
> > We should expose exceptions like this by default, but we
> > haven't yet.  Sorry.
>
> No worries, where should I be looking to implement this? Woudl a patch eb
likely
> to make it into the next version?
> If so, what exceptions should be exposed?
>
> My list so far:
> Exception (all the default Python ones would be cool, dunno if theyr'e in
there
> already...)
> CatalogError
> sys.exc_type
> sys.exc_value
>
> Any others?
>
> cheers,
>
> Chris
>
> _______________________________________________
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to