[Twisted-Python] dealing with woven templates.

Philippe Lafoucrière lafou at wanadoo.fr
Wed Jul 16 14:22:53 MDT 2003


I found a solution for the "/pictures" dir pb.

I have to add this :

def wchild_pictures(self, request):
        return static.File(os.path.join(self.templateDirectory,"pictures"))

to DirectoryListing(page.Page) class.

I can do it with all Pages in web site by creating a master class (ie :

class MyPage(page.Page):
	def wchild_pictures(self, request):
        	return static.File(os.path.join(self.templateDirectory,"pictures"))

But I still have the pb with the links.


I also took a look at generated code, it's quite ugly. Is there a way to have a incremented
output ?





More information about the Twisted-Python mailing list