def __reginit__(self): self.authenticated = False self.authorized = False self.clientdb = ClientDB() self.acldb = ACLDB() # this one is to do operation on sites from the console # or the command line self._sitedb = SiteDB() self.tags = ACLTags()
def tag_client(self, username, **tokens): return ClientDB().tag_client(username, **tokens)
def del_client(self, username, **tokens): return ClientDB().del_client(username, **tokens)
def add_client_pubkey(self, username, pubkey, number): if username: client = ClientDB() else: client = self.clientdb return client.add_pubkey(username, pubkey, number)
def add_client(self, username, **tokens): return ClientDB().add_client(username, **tokens)
def client_exists(self, username, **tokens): return ClientDB().exists(username, **tokens)