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

Stefan H. Holek stefan@epy.co.at
Fri, 15 Mar 2002 18:28:16 +0100


Whoops ;-)
Will fix

Thanks Tone!

Stefan


At 15.03.2002 15:21 +0000, Tony McDonald wrote:
>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


-- Passed the mailscanner.