[Twisted-web] ignoreExt value archived inside a web.tap?
Sergio Trejo
serj_trejo at hotmail.com
Fri Jul 16 08:21:00 MDT 2004
Is it possible to store the ignoreExt value in a web tap file using mktap?
The example documentation shows how its possible to hide implementation in a
python script that runs the reactor for an application of type web , such
as:
------------------------------------------------------------------------------
root = static.File(pathToSiteRoot)
root.ignoreExt(".rpy")
application = service.Application("web")
sc = service.IServiceCollection(application)
site = server.Site(root)
reactor.listenTCP(port, site)
reactor.run()
------------------------------------------------------------------------------
I prefer to daemonize my web server by using twistd to read a web.tap file,
and I'd also like the benefits of the ignoreExt method. Maybe I'm asking for
my cake and wanting to eat it too?
Serg
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the Twisted-web
mailing list