[Zope] Calling a ZSQL methods from an external method

J C Lawrence claw@kanga.nu
Fri, 11 Feb 2000 13:04:54 -0800


On Thu, 10 Feb 2000 10:34:55 -0800 
Nick Garcia <ngarcia@codeit.com> wrote:

> J C Lawrence wrote:
>>  Would someone who is successfully calling a ZSQL methods from an
>> external method mind dropping me their recipe?  I'm following the
>> HOW-TO exactly, but it keeps complaining that I can't find my
>> database connector (and is using the wrong name to find it).

> There isn't any special trick to it.  The external method takes
> self as an argument, and in the code I just call self.sqlMethod().

Okay, how do you pass an argument to the SQL method?

> Is it possible that you have another ZSQL Method somewhere with
> the same name and a different database connector?

Nope, I only have the one DB connection in the entire Zope system,
and that is definitely the only method of that name.

-- 
J C Lawrence                                 Home: claw@kanga.nu
----------(*)                              Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--