def __init__(self, vaultmgr, name): super(CreateVault, self).__init__(vaultmgr) self.name = name self.method = 0 self.uuid = None self.cookie = None self.logger = logging.get_logger(self) self.addWidgets() self.setStyleSheet(self.stylesheet) backend = QApplication.instance().backend() backend.VaultCreationComplete.connect(self.vaultCreationComplete) backend.PairNeighborStep2Completed.connect(self.pairNeighborStep2Completed)
def __init__(self, message_handler=None, timeout=-1, parent=None): """Create a new message bus connection. The *handler* specifies an optional message handler. """ super(QJsonRpcClient, self).__init__(parent) self._message_handler = message_handler self._timeout = timeout if timeout != -1 else self.default_timeout self._socket = None self._method_calls = {} self._outbuf = b"" self._incoming = collections.deque() self._outgoing = collections.deque() self._protocol = jsonrpc.JsonRpcProtocol(True) self._read_notifier = None self._write_notifier = None self._log = logging.get_logger(self)
def __init__(self, parent=None): """Create a new password view.""" super(VaultView, self).__init__(parent) self.vaults = {} self.vault_order = SortedList() self.current_vault = None self.versions = {} self.version_order = {} self.current_item = {} self.logger = logging.get_logger(self) self.addWidgets() self.setStyleSheet(self.stylesheet) editpwdlg = EditPasswordDialog() self.groupAdded.connect(editpwdlg.addGroup) self.groupRemoved.connect(editpwdlg.removeGroup) self.editpwdlg = editpwdlg backend = QApplication.instance().backend() backend.VaultCreated.connect(self.updateVault) backend.VaultDeleted.connect(self.updateVault) backend.VaultLocked.connect(self.vaultLocked) backend.VaultUnlocked.connect(self.vaultUnlocked) backend.SecretsAdded.connect(self.updateVaultItems)
def __init__(self): self._log = logging.get_logger() self._local = self.Local() self._init_routes()
def __init__(self, options): """The *options* argument must be the parsed command-line arguments.""" super(Backend, self).__init__(options) self._log = logging.get_logger(self) self._stop_event = gruvi.Event() self._process = None