[Zope] HEAD method in 2.0.0b1

bruce@perens.com bruce@perens.com
3 Aug 1999 15:36:06 -0000


From: Brian Lloyd <Brian@digicool.com>
> Is 'addPostingForm' a Zope object (DTML Document / Method)
> or a Python method?

It is a DTML method that is added programaticaly when an article is created.

    self.defaultDocFile('addPostingForm','Add Posting Form', 
	'Squishdot/addPostingForm') 

    def defaultDocFile(self,id,title,file): 
        f=open('%s/Products/%s.dtml' % (SOFTWARE_HOME,file)) 
        file=f.read() 
        f.close() 
        self.manage_addDTMLMethod(id,title,file) 

The entire code is in the Squishdot product available on the Zope web site.

	Thanks

	Bruce