Re: Question about File() and Resource()

Someone Something <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <[email protected]>
anyone? Please, I'm trying very hard to get this working!

On Sat, Nov 21, 2009 at 3:19 PM, Someone Something <[email protected]>wrote:

> I'm trying to make a homepage that has a link to a page that was made with
> file. The only thing that currently works is the File() page. I have
> absolutely no idea how to do the rest (no, its not homework). Here's my
> current code:
> from twisted.web.server import Site
> from twisted.web.resource import Resource
> from twisted.internet import reactor
> from twisted.web.static import File
>
>
> root=Resource()
> root.putChild("programming", File("/home/dhaivat/"));
>
> factory= Site(root)
> reactor.listenTCP(8080, factory);
> reactor.run();
>
> How can I implement the home page?
>
>

_______________________________________________
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.