Re: Override File's DirectoryLister?

Rich Brown <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <CAF-ggVOpa_The_qf4Wd3tEtY3ph_X3c30qExG_TD7dxS6tLp0g@mail.gmail.com>
Folks,

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

_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.