Commit 9ec22a8c authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Vincent Pelletier

ZSQLCatalog: Remove global and use default values instead.

This would also remove the need of evaluating the globals every time.
parent cc8e6582
...@@ -144,8 +144,6 @@ UID_BUFFER_SIZE = 300 ...@@ -144,8 +144,6 @@ UID_BUFFER_SIZE = 300
OBJECT_LIST_SIZE = 300 # XXX 300 is arbitrary value of catalog object list OBJECT_LIST_SIZE = 300 # XXX 300 is arbitrary value of catalog object list
MAX_PATH_LEN = 255 MAX_PATH_LEN = 255
valid_method_meta_type_list = ('Z SQL Method', 'LDIF Method', 'Script (Python)') # Nicer
manage_addSQLCatalogForm = DTMLFile('dtml/addSQLCatalog',globals()) manage_addSQLCatalogForm = DTMLFile('dtml/addSQLCatalog',globals())
# Here go uid buffers # Here go uid buffers
...@@ -1866,7 +1864,10 @@ class Catalog(Folder, ...@@ -1866,7 +1864,10 @@ class Catalog(Folder,
security.declarePrivate('getCatalogMethodIds') security.declarePrivate('getCatalogMethodIds')
def getCatalogMethodIds(self, def getCatalogMethodIds(self,
valid_method_meta_type_list=valid_method_meta_type_list): valid_method_meta_type_list=('Z SQL Method',
'LDIF Method',
'Script (Python)')
):
"""Find Z SQL methods in the current folder and above """Find Z SQL methods in the current folder and above
This function return a list of ids. This function return a list of ids.
""" """
......
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