Re: [Cheetahtemplate-discuss] DummyResponse and CGI sessions
Brought to you by:
rtyler,
tavis_rudd
From: Tavis R. <ta...@re...> - 2003-06-27 15:19:16
|
On Friday 27 June 2003 01:18, Paul Sorenson wrote: > Tavis, > > Thanks for the tip - I did notice that. I was hoping that somehow in the > infrastructure that calls each of the generated #def code I could pass in a > transaction either by specifying at compile time or a run time. > > Also in your example below, how do I pass the transaction to the code for > "respond"? > > #def respond(trans = $MyTrans) > ... > #end def > > results in "duplicate argument trans" template = Template(src) template.respond(trans=MyTrans) or even template.anyOtherMethod(trans=MyTrans) Cheers, Tavis |