~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to doc/examples/rootscript.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-06-21 22:01:11 UTC
  • mto: (2.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040621220111-vkf909euqnyrp3nr
Tags: upstream-1.3.0
ImportĀ upstreamĀ versionĀ 1.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from twisted.web import vhost, static, script
 
2
 
 
3
default = static.Data('text/html', '')
 
4
default.putChild('vhost', vhost.VHostMonsterResource())
 
5
resource = vhost.NameVirtualHost()
 
6
resource.default = default
 
7
file = static.File('static')
 
8
file.processors = {'.rpy': script.ResourceScript}
 
9
resource.addHost('twistedmatrix.com', file)