Commit 8aef2341 authored by Chris Withers's avatar Chris Withers

Collector #1457: ZCTextIndex's QueryError and ParseError are now available for...

Collector #1457: ZCTextIndex's QueryError and ParseError are now available for import from untrusted code.
parent d703bd2b
...@@ -157,6 +157,9 @@ Zope Changes ...@@ -157,6 +157,9 @@ Zope Changes
Bugs fixed Bugs fixed
- Collector #1457: ZCTextIndex's QueryError and ParseError
are now available for import from untrusted code.
- Collector #1473: zpasswd.py can now accept --username - Collector #1473: zpasswd.py can now accept --username
without --password without --password
......
...@@ -53,3 +53,10 @@ def getElementNames(self, group): ...@@ -53,3 +53,10 @@ def getElementNames(self, group):
def getIndexTypes(self): def getIndexTypes(self):
return ZCTextIndex.index_types.keys() 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')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment