Re: [Zope-dev] ZPT in Zope Products

2004-04-15 Thread Santi Camps
Wyatt Anderson escribi: Hello All, I am trying to use ZPT within a Zope Product I am trying to build. I want to test the container type I am addding to to determine what action to take. The following though from Products.PageTemplates.PageTemplateFile import PageTemplateFile def

RE: [Zope-dev] ZPT in Zope Products

2004-04-15 Thread Wyatt Anderson
page templates in a product? Thanks, Wyatt -Original Message- From: Santi Camps [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:26 AM To: Wyatt Anderson Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] ZPT in Zope Products Wyatt Anderson escribió: Hello All, I am trying

[Zope-dev] ZPT in Zope Products

2004-04-15 Thread Clemens Robbenhaar
Hi Wyatt, from Products.PageTemplates.PageTemplateFile import PageTemplateFile def manage_addMyContainerForm(self, REQUEST): pt = None if self.meta_type in ['ContainerType1', 'ContainerType2']: pt = PageTemplateFile('zpt/addMyContainerForm', globals())

[Zope-dev] ZPT in Zope Products

2004-04-14 Thread Wyatt Anderson
Hello All, I am trying to use ZPT within a Zope Product I am trying to build. I want to test the container type I am addding to to determine what action to take. The following though from Products.PageTemplates.PageTemplateFile import PageTemplateFile def