[Twisted-web] Override File's DirectoryLister?

Rich Brown richb.hanover at gmail.com
Sat Nov 3 17:05:30 EDT 2012


Thanks again for the answers to my earlier question about overriding the
DirectoryLister class. They worked perfectly. I can tweak and style the
appearance as desired. One more question:

Within of the display of a directory's contents, I would like to have the
ability to have a form that lets me add a file to that directory.

To do this, I added a <form method="post"> to the template of the
DirectoryLister with an <input type=file ...> to specify the file and
created a render_POST() function within my subclass of File.

But the render_POST() function doesn't seem to be called when I click
Submit. I suspect that I'm misunderstanding the class hierarchy, but don't
know what to change. Any advice?

Many thanks!

Rich Brown
Hanover, NH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20121103/a045396b/attachment.htm 

More information about the Twisted-web mailing list