def __init__(self, portal): Resource.__init__(self) Loggable.__init__(self) # support only basic auth for now credentialFactories = [BasicCredentialFactory("cattivo")] self.resource = HTTPAuthSessionWrapper(portal, credentialFactories)
def __init__(self): Resource.__init__(self) Loggable.__init__(self) log = Resource() log.putChild("client", LogClientResource()) self.putChild("log", log)
def __init__(self, firewall): self.user = cattivo.config.get("cleaner", "user") self.passwd_file = cattivo.config.get("cleaner", "passwd-file") checker = FilePasswordDB(self.passwd_file) self.realm = CleanerRealm() self.portal = Portal(self.realm) self.portal.registerChecker(checker) self.firewall = firewall Site.__init__(self, CleanerResource(self.portal)) Loggable.__init__(self)
def __init__(self, bouncer_address, bouncer_port, clientList): Loggable.__init__(self) self.clientList = clientList self.systemFirewall = IPTablesFirewall(bouncer_address, bouncer_port) self.holes = Holes(self.systemFirewall)
def __init__(self, firewall, auth_server): Site.__init__(self, BouncerResource()) Loggable.__init__(self) self.firewall = firewall self.auth_server = auth_server
def __init__(self): Resource.__init__(self) Loggable.__init__(self)
def __init__(self): Site.__init__(self, ClientListServerResource()) Loggable.__init__(self)
def __init__(self): Resource.__init__(self) Loggable.__init__(self) self.putChild("client", ClientResource())
def __init__(self): Site.__init__(self, LoggerServerResource()) Loggable.__init__(self)
def __init__(self): Loggable.__init__(self)
def __init__(self, firewall): Loggable.__init__(self) self._firewall = firewall self._hole_entries = {} self._hole_entries_by_expiration = [] self._hole_expired_call = None
def __init__(self): Site.__init__(self, AuthenticatorListServerResource()) Loggable.__init__(self)
def __init__(self): Resource.__init__(self) Loggable.__init__(self) self.putChild("client", AuthenticatorResource())