[Twisted-Python] an easy twisted application question
Phil Christensen
phil at bubblehouse.org
Wed Nov 12 11:59:43 MST 2003
AHA!
i needed to have my parent class subclass MultiService, right? so i tried
this, and the tap built fine...hopefully it was the right thing (still
testing)...
-phil
class RegistryService(service.MultiService):
def __init__(self, registry):
service.MultiService.__init__(self)
self.registry = registry
def makeService(config):
registry = Registry()
reg_service = RegistryService(registry)
portal = Portal(auth.InnerSpaceRealm(reg_service))
checker = auth.RegistryChecker(registry)
portal.registerChecker(checker)
pb_service = internet.TCPServer(int(config['port']),
pb.PBServerFactory(portal))
pb_service.setServiceParent(reg_service)
return reg_service
More information about the Twisted-Python
mailing list