[Zope] ZSQL methods in parent subfolder

Martijn Pieters mj@antraciet.nl
Wed, 10 Mar 1999 10:30:41 +0100


At 01:56 10/03/99 , John Eikenberry wrote:
>Is this behaviour a bug?
>
>I have all my ZSQL methods collected together in a folder. If I call these
>from a sibling folder[1] without any arguments, ie.
>
><!--#in "sql.company"-->
>
>I get the below error, if I call them with specific arguments, ie.
>
><!--#in "sql.company(comp_id=_['comp_id'])"-->
>
>I get no errors. (comp_id was in REQUEST in both cases).

Because you are calling "sql.company" (in quotes), it is assumed to be an
expression, and your expression is referencing an attribute, not a method.
Try using the following: "sql.company()", or sql.company (without quotes).
Note: I didn't test either method.

--
M.J. Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------