[ZPT] ZPT for manage_addForm
Evan Simpson
evan@zope.com
Wed, 27 Feb 2002 14:13:03 -0500
Michael R. Bernstein wrote:
> Steve Alexander (on #zope) asked what ZPTs used as their add form, and I
> found the following in ZopePageTemplate.py:
>
> # Product registration and Add support
> manage_addPageTemplateForm = PageTemplateFile(
> 'www/ptAdd', globals(), __name__='manage_addPageTemplateForm')
>
> Adding the __name__='manage_addForm' parameter to the code in my product
> makes it work.
It's a bug. PageTemplateFiles in Zope 2.5 didn't try to derive an
__name__ from the filename if one wasn't explicitly specified. This is
now fixed in CVS.
Thanks,
Evan @ Zope