[Zope] Adding a ZPT when adding product instance

Lee Harr missive at hotmail.com
Fri Jan 9 10:02:57 EST 2004


I use something like this to add a DTML Method inside of my folderish
product:

    # Add default interface
    index_html = HTMLFile('dtml/index_html', globals())
    text = index_html.read_raw()
    ob.manage_addDTMLMethod(id='index_html', title='')
    idx = ob.index_html
    idx.manage_edit(text, title='')


the source for the index_html file is in the dtml folder in my product,
and is called index_html.dtml

Is this the correct Zope idiom?
How can I do something similar for ZPT?

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the Zope mailing list