Esempio n. 1
0
	def finish(self):
		'''Finished the key gen'''
		# Store key, name in mongo under own profile
		selectedKey = self.privateKeys[self.keypairListWidget.currentRow()]
		ownid = TorClient.getOwnId()
		# See if a name was entered before, if so use that
		myname = self.keygenParamBoxes['name'].text()
		if not myname:
			# Extract the name from the string which comes back from the key as "'Some Name (no comment) <*****@*****.**>'"
			myname = self.extractName(selectedKey['uids'])
		profile = {"name" : myname, "keyid" : selectedKey['keyid'], "torid" : ownid, "status" : "self", "ownprofile" : True}
		DbClient.updateContact(ownid, profile)
		return True
Esempio n. 2
0
	def run(self):
		# Check each of the services in turn
		self.successFlags = {}
		# Mongo
		authSetup = AuthSetterUpper()
		self.successFlags['mongo'] = authSetup.setup()
		self.emit(QtCore.SIGNAL('updated()'))
		time.sleep(1)
		# Gnupg
		self.successFlags['gpg'] = CryptoClient.checkGpg()
		self.emit(QtCore.SIGNAL('updated()'))
		time.sleep(1)
		# Tor
		if TorClient.startTor():
			torid = TorClient.getOwnId()
			if torid:
				print("Started tor, our own id is: ", torid)
				self.successFlags['tor'] = True
			else: print("Failed to start tor")
		else: print("startTor returned false :(")
Esempio n. 3
0
 def finish(self):
     '''Finished the key gen'''
     # Store key, name in the database for our own profile
     selectedKey = self.privateKeys[self.keypairListWidget.currentRow()]
     ownid = TorClient.getOwnId()
     # See if a name was entered before, if so use that
     myname = self.keygenParamBoxes['name'].text()
     if not myname:
         # Extract the name from the string which comes back from the key as "'Some Name (no comment) <*****@*****.**>'"
         myname = self.extractName(selectedKey['uids'])
     profile = {
         "name": myname,
         "keyid": selectedKey['keyid'],
         "torid": ownid,
         "status": "self",
         "ownprofile": True
     }
     # Store this in the database
     DbI.updateProfile(ownid, profile)
     return True
Esempio n. 4
0
 def run(self):
     # Check each of the services in turn
     self.successFlags = {}
     # Database
     time.sleep(0.5)
     DbI.setDb(MurmeliDb(Config.getSsDatabaseFile()))
     self.successFlags['database'] = True
     self.updatedSignal.emit()
     time.sleep(0.5)
     # Gnupg
     self.successFlags['gpg'] = CryptoClient.checkGpg()
     self.updatedSignal.emit()
     time.sleep(1)
     # Tor
     if TorClient.startTor():
         torid = TorClient.getOwnId()
         if torid:
             print("Started tor, our own id is: ", torid)
             self.successFlags['tor'] = True
         else:
             print("Failed to start tor")
     else:
         print("startTor returned false :(")
Esempio n. 5
0
	def prepare(self):
		'''Prepare the final panel'''
		text = (I18nManager.getText("startupwizard.finished.yourid") % TorClient.getOwnId())
		self.youridLabel.setText(text)
Esempio n. 6
0
 def prepare(self):
     '''Prepare the final panel'''
     text = (I18nManager.getText("startupwizard.finished.yourid") %
             TorClient.getOwnId())
     self.youridLabel.setText(text)