[ create a new paste ] login | about

Link: http://codepad.org/fRZTwgKI    [ raw code | fork ]

Python, pasted on Jan 25:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from twisted.application import internet, service
from twisted.internet import protocol
from twisted.spread import pb
from amodule import aClass, RemoteClass, PBServer

pb.setUnjellyableForClass(aClass, RemoteClass)

application = service.Application("Test app")

# Prepare managers
clientManager = internet.TCPServer(8282, pb.PBServerFactory(PBServer()));
clientManager.setServiceParent(application)

if __name__ == '__main__':
    print "Run with twistd"
    import sys
    sys.exit(1)


Create a new paste based on this one


Comments: