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
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,
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.