[kupfer] settings: No password in UserNamePassword's repr
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] settings: No password in UserNamePassword's repr
- Date: Wed, 5 May 2010 21:54:07 +0000 (UTC)
commit 8b8dcb06749031d7ff0187df36426615905788c1
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed May 5 23:50:47 2010 +0200
settings: No password in UserNamePassword's repr
Showing the password there is just plain wrong. If we do, it *will*
someday end up in a debug log somewhere, somehow, and it's not good
for anyone.
kupfer/core/settings.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/core/settings.py b/kupfer/core/settings.py
index 6136c13..9165e23 100644
--- a/kupfer/core/settings.py
+++ b/kupfer/core/settings.py
@@ -402,7 +402,8 @@ class UserNamePassword(ExtendedSetting):
self.password = obj.password
def __repr__(self):
- return '<UserNamePassword "%s", "%s">' % (self.username, self.password)
+ return '<UserNamePassword "%s", %s>' % (self.username,
+ bool(self.password))
@classmethod
def _configure_keyring(cls):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]