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, globals())(None,md) cheers, Chris