Re: [Zope] How to render a HTMLFile in a method in a product

2000-11-06 Thread Chris Withers
Max Møller Rasmussen wrote: def __call__(self,client=None,mapping={},**kw): This method accepts an object in which it will look up values to insert in the dtml file, and a mapping object (dictionary) that also will look up values to insert. So i guess that is what (None,md) does. But

Re: [Zope] How to render a HTMLFile in a method in a product

2000-10-26 Thread Chris Withers
Max Møller Rasmussen wrote: def test(self): "A simpe test method" return HTMLFile('skins/' + self.skin, globals()) This is the closest. try the following: testisDocTemp = 1 def test(self,ignored,md): " A simple test method " return HTMLFile('skins/' + self.skin,

RE: [Zope] How to render a HTMLFile in a method in a product

2000-10-26 Thread Max Møller Rasmussen
From: Chris Withers [mailto:[EMAIL PROTECTED]] Thanks for the reply testisDocTemp = 1 def test(self,ignored,md): " A simple test method " return HTMLFile('skins/' + self.skin, globals())(None,md) Is this documented anywhere? I have a little trouble using code I don't understand.