Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Collector #1457: ZCTextIndex's QueryError and ParseError are now avai…
Browse files Browse the repository at this point in the history
…lable for import from untrusted code.
  • Loading branch information
cjw296 committed Sep 25, 2004
1 parent caf5f87 commit 6b81d53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __init__.py
Expand Up @@ -53,3 +53,10 @@ def getElementNames(self, group):

def getIndexTypes(self):
return ZCTextIndex.index_types.keys()

## Allow relevent exceptions to be caught in untrusted code
from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('Products').declarePublic('ZCTextIndex')
ModuleSecurityInfo('Products.ZCTextIndex').declarePublic('ParseTree')
ModuleSecurityInfo('Products.ZCTextIndex.ParseTree').declarePublic('QueryError')
ModuleSecurityInfo('Products.ZCTextIndex.ParseTree').declarePublic('ParseError')

0 comments on commit 6b81d53

Please sign in to comment.