freebsd-ports/net-im/py-punjab/files/punjab.tac.in
Beech Rintoul 3cc30a0776 Update to 0.14
Pass maintainership to submitter

PR:		ports/152497
Submitted by:	ports@c0decafe.net
Approved by:	itetcu (implicit)
2010-11-30 21:35:55 +00:00

15 lines
451 B
Python

from twisted.web import server, resource, static
from twisted.application import service, internet
from punjab.httpb import Httpb, HttpbService
root = static.File("%%WWWDIR%%") # a static html directory
b = resource.IResource(HttpbService(1)) # 1 means turn on verbose mode.
root.putChild('bosh', b) # url for BOSH
site = server.Site(root)
application = service.Application("punjab")
internet.TCPServer(5280, site).setServiceParent(application)