Commit 0e05c4e1 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Modify mistake with dtml file path and remove initialization of...

erp5_catalog: Modify mistake with dtml file path and remove initialization of XMLObject and ZSQL in SQLMethod __init__
parent a3189124
...@@ -40,7 +40,7 @@ from Products.ZSQLMethods.SQL import SQL as ZSQL ...@@ -40,7 +40,7 @@ from Products.ZSQLMethods.SQL import SQL as ZSQL
def migrateSQLMethodToERP5Object(self, id, title=''): def migrateSQLMethodToERP5Object(self, id, title=''):
pass pass
manage_addSQLMethodForm = DTMLFile('../dtml/addSQLMethod.dtml', globals()) manage_addSQLMethodForm = DTMLFile('../dtml/addSQLMethod', globals())
# New ZSQLMethod addition function # New ZSQLMethod addition function
def manage_addSQLMethod(self, id, title='', def manage_addSQLMethod(self, id, title='',
...@@ -53,7 +53,7 @@ def manage_addSQLMethod(self, id, title='', ...@@ -53,7 +53,7 @@ def manage_addSQLMethod(self, id, title='',
id = str(id) id = str(id)
title = str(title) title = str(title)
c = SQLMethod(id, title, self) c = SQLMethod(id, self)
self._setObject(id, c) self._setObject(id, c)
c = self._getOb(id) c = self._getOb(id)
if REQUEST is not None: if REQUEST is not None:
...@@ -88,9 +88,8 @@ class SQLMethod(XMLObject, ZSQL): ...@@ -88,9 +88,8 @@ class SQLMethod(XMLObject, ZSQL):
, PropertySheet.SQLMethod , PropertySheet.SQLMethod
) )
def __init__(self, *args, **kw): def __init__(self, id, *args, **kw):
""" self.id = id
Override to initialize ZSQLMethod # Do we really need to initialize XMLObject class ?
""" #XMLObject.__init__(self, *args, **kw)
XMLObject.__init__(self, *args, **kw)
ZSQL.__init__(self, *args, **kw)
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