[Zope] dtml-with question
Chris Withers
chrisw@nipltd.com
Sat, 10 Aug 2002 16:58:53 +0100
Hi Marie,
You _really_ should be using Python Scripts for this kind of thing. Still, good
to see you're using ZPT :-)
Anyway, here's the Python script that will do what you want:
theDict = context.filescript(context.REQUEST)
mytitle = theDict['title']
body = theDict['body']
myid = theDict['fid']
context.manage_addFolder(myid,mytitle)
myfolder = context[myid]
myfolder.manage_addProduct['PageTemplates'].manage_addPageTemplate('index_html',mytitle,body)
return 'Done'
cheers,
Chris