Commit 69ea60a1 authored by Ayush Tiwari's avatar Ayush Tiwari

multiple_catalog: get default catalog id

parent c10ec219
...@@ -753,7 +753,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -753,7 +753,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
# now = DateTime() # now = DateTime()
# kw[ 'effective' ] = { 'query' : now, 'range' : 'max' } # kw[ 'effective' ] = { 'query' : now, 'range' : 'max' }
# kw[ 'expires' ] = { 'query' : now, 'range' : 'min' } # kw[ 'expires' ] = { 'query' : now, 'range' : 'min' }
catalog_id = self.getSQLCatalog(sql_catalog_id).id catalog_id = self.getDefaultSqlCatalogId()
query = self.getSecurityQuery( query = self.getSecurityQuery(
sql_catalog_id=catalog_id, sql_catalog_id=catalog_id,
local_roles=local_roles, local_roles=local_roles,
...@@ -818,7 +818,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -818,7 +818,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
# now = DateTime() # now = DateTime()
# #kw[ 'effective' ] = { 'query' : now, 'range' : 'max' } # #kw[ 'effective' ] = { 'query' : now, 'range' : 'max' }
# #kw[ 'expires' ] = { 'query' : now, 'range' : 'min' } # #kw[ 'expires' ] = { 'query' : now, 'range' : 'min' }
catalog_id = self.getSQLCatalog(sql_catalog_id).id catalog_id = self.self.getDefaultSqlCatalogId()
query = self.getSecurityQuery( query = self.getSecurityQuery(
sql_catalog_id=catalog_id, sql_catalog_id=catalog_id,
local_roles=local_roles, local_roles=local_roles,
......
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