Folks,<br><br>I&#39;m new to Twisted and it looks like a good way to add a web server to my existing project. I am successfully following the example at <a href="http://twistedmatrix.com/documents/current/web/howto/web-in-60/static-dispatch.html">http://twistedmatrix.com/documents/current/web/howto/web-in-60/static-dispatch.html</a> to display the directories with the default file listing code.<br>
<br>Now I want to modify that default behavior for directory listing to:<br><br>- filter out/exclude certain kinds of files (e.g., by the extension), and <br>- add a few elements to the HTML page displayed.<br><br>I&#39;ve read the code of static.py, and see that the the DirectoryLister class seems to govern this. I believe I need to make a subslass, but I&#39;m not a strong Python programmer, so the minor variations I tried kept running amiss of the class hierarchy, etc.<br>
<br>Could someone give me an outline of the method declarations that are needed to get the behavior above? Many thanks.<br><br>Rich Brown<br>Hanover, NH USA<br>