[Zope] ReplaceSupport mangles ZSQL methods....but...

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 15 Mar 2002 15:21:16 +0000


Hi all,
The *otherwise excellent* ReplaceSupport mangles ZSQLmethods in that the
body of the method (the SQL) and the arguments gets mixed over.

It's a dead easy fix though, check out the Zope API and you'll see that
manage_edit for ZSQLmethods is defined as

manage_edit(title, connection_id, arguments, template):

Whereas in the Handlers directory of ReplaceSupport, the file ZSQLMethod.py
is;

        def manageEdit( self, ob, body, params='' ):
                ob.manage_edit( ob.title, ob.connection_id, body, params )

Change it so's its;

        def manageEdit( self, ob, body, params='' ):
                ob.manage_edit( ob.title, ob.connection_id, params, body )

And bobs your uncle...

Hth
tone
-- 
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope