[Zope] Did I miss some major change in Z SQL Methods ?

Hannu Krosing hannu@tm.ee
Thu, 25 Jan 2001 10:41:10 +0200


Curtis Maloney wrote:
> 
> Green things,
> 
>         I have a few methods poking about that just don't seem to make sense....
> 
>         A Z SQL Method ( Returner.sql.getDetails ) which simply contains:
> 
> SELECT * FROM Returner WHERE ReturnerID=<dtml-sqlvar User type="int">
> 
>         Which returns everything as expected.  The I have a Python Method which
> refers to it, simply wrapping it up, and taking the first (of what should be
> only one anyway) element.  It contains the following:
> ( Returner.getDetails(self, User) )
> 
> return self.sql.getDetails(User=User)[0]
> 
>         Now.. for some reason, the following throws complaints about not being able
> to find ANY of the fields in the row:
> 
> <dtml-with "Returner.getDetails(Returner, User=12)">
>   <dtml-var fieldName>
> </dtml-with>

what does :

 <dtml-in "[Returner.getDetails(Returner, User=12)]">
   <dtml-var sequence-item html_quote>
 </dtml-in>

return ?

--------------------
Hannu