Commit 31201f13 authored by Jérome Perrin's avatar Jérome Perrin

Allow NegatedQuery from restricted code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17174 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8418e446
......@@ -289,6 +289,8 @@ class NegatedQuery(QueryMixin):
def getRelatedTableMapDict(self, *args, **kw):
return self._query.getRelatedTableMapDict(*args, **kw)
allow_class(NegatedQuery)
class Query(QueryMixin):
"""
This allow to define constraints on a sql column
......
......@@ -42,4 +42,6 @@ def initialize(context):
context.registerHelpTitle('Zope Help')
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
ModuleSecurityInfo('Products.ZSQLCatalog.SQLCatalog').declarePublic('ComplexQuery', 'Query')
ModuleSecurityInfo('Products.ZSQLCatalog.SQLCatalog').declarePublic(
'ComplexQuery', 'Query', 'NegatedQuery')
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