Commits

Erik Grinaker committed e786585

minor improvements to the password checker

  • Participants
  • Parent commits 4dfbd6e

Comments (0)

Files changed (2)

 - only copy/paste entries with keyboard shortcut when tree has focus
   (ctrl-c should copy selected label in dataview when focused)
   - use gtk.Window.get_focus()
-- bugfix: gnome.libgnome_module_info_get() removed in new gnome-python
 - examine drag/drop undo/redo crashes
+- use a more complete password dictionary
 
 0.5.x:
 - ensure complete UTF-8 support

File src/lib/dialog.py

 					result	= "The password is good"
 
 			except ValueError, result:
+				result	= str(result)
+				result = result.replace("simplistic/systematic", "systematic")
+				result = result.replace(" dictionary", "")
+
+				if result[:3] == "it ":
+					result = result[3:]
+
 				icon	= ui.STOCK_PASSWORD_WEAK
-				result	= "The password " + str(result)
-
-				result = result.replace("simplistic/systematic", "systematic")
+				result = "The password " + result
 
 			self.result.set_text(result)
 			self.result.set_stock(icon, ui.ICON_SIZE_LABEL)
 		"Displays the dialog"
 
 		self.show_all()
-		self.get_button(0).grab_focus()
 
 		if EVENT_FILTER != None:
 			self.window.add_filter(EVENT_FILTER)