~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/web/examples/rootscript.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

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)