File: webui.tac

package info (click to toggle)
ldaptor 0.0.43%2Bdebian1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,168 kB
  • ctags: 3,592
  • sloc: python: 18,670; xml: 787; makefile: 147; sh: 88
file content (15 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- python -*-
from twisted.application import service, internet
from nevow import appserver
from ldaptor import config
from ldaptor.apps.webui import main

application = service.Application("ldaptor-webui")
myService = service.IServiceCollection(application)

resource = main.getResource()

site = appserver.NevowSite(resource)

myServer = internet.TCPServer(38980, site)
myServer.setServiceParent(myService)