[mod_python] running templates, was segmentation fault

Jim Gallacher jpg at jgassociates.ca
Tue Jun 6 16:35:58 EDT 2006

David Bear wrote:
> On Tue, Jun 06, 2006 at 12:03:37PM -0400, Jim Gallacher wrote:
>> As an alternative you could do:
>> body_template = psp.PSP(req, filename="list.psp")
>> mytemplate.run({'body' : body_template})
> this syntax baffles me. where is 'mytemplate' defined? and what kind
> of an object is it?

It's a reference to snippet of code in Julien's message. Since the 
thread was discussing psp templates, one can assume his reference to 
mytemplate.run() refers to a PSP instance created elsewhere in his code 
which was not in the message but can be inferred.


More information about the Mod_python mailing list