[ZPT] manage_addPageTemplate : how to use

Edward Muller edwardam@interlix.com
17 Sep 2002 15:50:19 -0500


## Script (Python) "test"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=id, title, text
##title=
##
context.manage_addProduct['PageTemplates'].manage_addPageTemplate(id)
context[id].pt_setTitle(title)
context[id].write(text)
return id

The above python script takes an id, a title and the text and creates a
Page Template with them in the current context.

On Tue, 2002-09-17 at 15:12, Edward Pollard wrote:
> Can anyone point me towards how to use this method off the object 
> manager to create a page template? I cannot find any documentation as 
> to what the parameters are for it.
> 
> Edward
> 
> 
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
-- 
--EAM

Interlix - President/Owner

Web Hosting - PC Service & Support
Custom Programming - Network Service & Support

http://www.interlix.com