[Zope-dev] Re: Grrr... Python Scripts

Chris McDonough chrism@digicool.com
Tue, 8 May 2001 09:29:38 -0400


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" <chrisw@nipltd.com>
To: "Evan Simpson" <evan@digicool.com>
Cc: <zope-dev@zope.org>
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  -  Zope-Dev@zope.org
> 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 )
>