Commit d5ee7fbe authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

erp5_catalog: Create ERP5 SQL Method everywhere in Archive tool and testArchive

parent c8a3f230
...@@ -88,14 +88,13 @@ class TestArchive(InventoryAPITestCase): ...@@ -88,14 +88,13 @@ class TestArchive(InventoryAPITestCase):
portal_skins_custom = portal.portal_skins.custom portal_skins_custom = portal.portal_skins.custom
zsql_method = getattr(portal_skins_custom, zsql_method_id, None) zsql_method = getattr(portal_skins_custom, zsql_method_id, None)
if zsql_method is None: if zsql_method is None:
portal_skins_custom.manage_addProduct['ZSQLMethods']\ zsql_method = portal_skins_custom.newContent( \
.manage_addZSQLMethod( portal_type = 'SQL Method',
id = zsql_method_id, id = zsql_method_id,
title = '', title = '',
connection_id = connection_id, connection_id = connection_id,
arguments = "", arguments = "",
template = "select path from catalog") src = "select path from catalog")
zsql_method = portal_skins_custom[zsql_method_id]
zsql_method.max_rows_ = 0 zsql_method.max_rows_ = 0
# it is mandatory to provide connection_id, or the # it is mandatory to provide connection_id, or the
# zsql method will look at preference and use the one # zsql method will look at preference and use the one
......
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