[Zope] Calling ZSQL methods with implicit arguments
Nuno Maltez
nuno@xml.pt
Fri, 25 Jan 2002 12:11:07 +0000
Em Quinta, 24 de Janeiro de 2002 16:07, J=FAlio Dinis Silva escreveu:
> ><dtml-let results=3D"myZsqlMethod">
> > ...
> ></dtml-let>
>
> Are you sure? This should be possible. What traceback do you get?
The "let" by itself works, but it doesn't store the Results just the
ZSQL method itself (i.e., if i try results[0] I get a traceback).
> Another Option (store <Shared.DC.ZRDB.Results.Results instance>) :
> <dtml-call "REQUEST.set('Results',MyZsqlMethod)">
This is the same thing.
> <dtml-call "REQUEST.set('results',[])">
> <dtml-in MyZsqlMethod>
> <dtml-call "results.append(_['sequence-item'])">
> </dtml-in>
This might do the trick, but I prefer Ulli's way :-)
Nuno