Commit 24c0e7d2 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Vincent Pelletier

ZSQLCatalog: Make several schema-related methods public.

These methods will be used in erp5 catalog view in restricted environment.
Loosen the security on methods which we will use in erp5 catalog view in
restricted environment.
parent 0b0d2ace
......@@ -1106,7 +1106,7 @@ class Catalog(Folder,
"""
return self._getCatalogSchema()[table]
security.declarePrivate('getColumnIds')
security.declarePublic('getColumnIds')
@transactional_cache_decorator('SQLCatalog.getColumnIds')
def getColumnIds(self):
"""
......@@ -1143,7 +1143,7 @@ class Catalog(Folder,
result.setdefault('%s.%s' % (table, field), []).append(table) # Is this inconsistent ?
return result
security.declarePrivate('getResultColumnIds')
security.declarePublic('getResultColumnIds')
@transactional_cache_decorator('SQLCatalog.getResultColumnIds')
def getResultColumnIds(self):
"""
......@@ -1157,7 +1157,7 @@ class Catalog(Folder,
keys.add('%s.%s' % (table, field))
return sorted(keys)
security.declarePrivate('getSortColumnIds')
security.declarePublic('getSortColumnIds')
@transactional_cache_decorator('SQLCatalog.getSortColumnIds')
def getSortColumnIds(self):
"""
......@@ -1171,7 +1171,7 @@ class Catalog(Folder,
keys.add('%s.%s' % (table, field))
return sorted(keys)
security.declarePrivate('getTableIds')
security.declarePublic('getTableIds')
def getTableIds(self):
"""
Calls the show table method and returns dictionnary of
......@@ -1892,7 +1892,7 @@ class Catalog(Folder,
ids.sort()
return ids
security.declarePrivate('getPythonMethodIds')
security.declarePublic('getPythonMethodIds')
def getPythonMethodIds(self):
"""
Returns a list of all python scripts available in
......
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