[Zope-CMF] Re: FSZSQLMethods

Chris Withers chrisw@nipltd.com
Wed, 21 Aug 2002 16:14:15 +0100


alan runyan wrote:
> did you know that having multiple parameters in a FSZSQLMethod is severly
> broken?

No, it isn't. We've been doing it for months, ever since I checked in 
FSZSQLMethod on to a branch ;-)

> you need to change only one line.
> 
> arguments =     parameters.get('arguments','').replace(',','\n')

This is bogus ;-)

Line 88 on FSZSQLMethod.py splits on newlines, therefore seperating your 
parameters by newlines won't help, I have no idea how you ever got your code 
working with this.

You should be seperating with a space, a lá:

<dtml-comment>
Connection_id : xxx
arguments: arg1 arg2 arg3
max_cache: 1000
max_rows: 0
</dtml-comment>

...so I'm going to revert this change.

cheers,

Chris