[Zope] script calling template

Andreas Jung lists at zopyx.com
Fri Sep 12 01:11:32 EDT 2008



--On 11. September 2008 09:18:09 -0700 David Bear <David.Bear at asu.edu> 
wrote:

> Thanks to both Paul and AJ -- both suggestions were helpful. The extended
> description Paul gave me below was particularly use.
>
> Here's what I learned:
> 1) the form object is automagically handed to the template when you do a
> 'return context.mytemplate(item='something')
> 2) I assumed that I would have to pass the form object to the template --
> but this is not needed. More usefulusefull is that when 'item' is given 
to the
> template as parameter, shown above, that the template gets a NEW?
> namespace called 'options'.  I think this is new to me.

You should really read the ZPT documentation. It tells you about 'options'.

-aj

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20080912/4e3d365d/attachment.bin 


More information about the Zope mailing list