[Zope-dev] Create an empty DTML Method

Duncan Booth duncan@rcp.co.uk
Tue, 23 May 2000 10:47:22 +0000


> I want to write some dtml code that will add a DTML method that is
> totally empty.  The add_DTMLMethod method in Zope puts in the default
> Zope content.  How do I avoid that?
> 
Try:
 manage_addDTMLMethod(id='test1', title='This is a test', file='')

The file parameter can be a file like object or a string.

-- 
Duncan Booth                                             duncan@dales.rmplc.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
http://dales.rmplc.co.uk/Duncan