Revision 2271,
548 bytes
checked in by alexandrecorreia, 15 years ago
(diff) |
Ticket #986 - Reimplementar interface mais leve para o IM, sem a necessidades de plugins adicionais.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2271] | 1 | # punjab tac file |
---|
| 2 | from twisted.web import server, resource, static |
---|
| 3 | from twisted.application import service, internet |
---|
| 4 | |
---|
| 5 | from punjab.httpb import Httpb, HttpbService |
---|
| 6 | |
---|
| 7 | root = static.File("./") # This needs to be the directory |
---|
| 8 | # where you will have your html |
---|
| 9 | # and javascript. |
---|
| 10 | |
---|
| 11 | b = resource.IResource(HttpbService(1)) # turn on debug with 1 |
---|
| 12 | root.putChild('bosh', b) |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | site = server.Site(root) |
---|
| 16 | |
---|
| 17 | application = service.Application("punjab") |
---|
| 18 | internet.TCPServer(5280, site).setServiceParent(application) |
---|
Note: See
TracBrowser
for help on using the repository browser.