Commit dd82b5c5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Make addDefaultSQLMethods callable from a restricted environment.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3040 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58cfc298
...@@ -138,7 +138,11 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -138,7 +138,11 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
, 'manage_schema' ) , 'manage_schema' )
manage_schema = DTMLFile( 'dtml/manageSchema', globals() ) manage_schema = DTMLFile( 'dtml/manageSchema', globals() )
security.declareProtected( 'Import/Export objects', 'addDefaultSQLMethods' )
def addDefaultSQLMethods(self, config_id='erp5'): def addDefaultSQLMethods(self, config_id='erp5'):
"""
Add default SQL methods for a given configuration.
"""
# For compatibility. # For compatibility.
if config_id.lower() == 'erp5': if config_id.lower() == 'erp5':
config_id = 'erp5_mysql' config_id = 'erp5_mysql'
......
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