diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index 9fd0d81f473bb59c48cfc2916ea24a5bfd1e8c76..55060ce0472a76b5f254c917e8007cca2f4aed7a 100755 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -917,7 +917,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): #LOG("No Index, Call SQL Method %s with args:" % method_name,0, str(kw)) method(**kw) except: - LOG("SQLCatalog Warning: could not catalog object with method %s" % method_name,100, str(path)) + LOG("SQLCatalog Warning: could not catalog object with method %s" % method_name,100, str(path), error=sys.exc_info()) raise #except: # # # This is a real LOG message @@ -1063,7 +1063,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): return None # Get the appropriate SQL Method method = getattr(self, self.sql_getitem_by_path) - search_result = method(path = path) + search_result = method(path = path, uid_only=1) # If not emptyn return first record if len(search_result) > 0: return search_result[0].uid