Merge lp:~nataliabidart/ubuntu/maverick/ubuntu-sso-client/ubuntu-sso-client-1.0.2 into lp:ubuntu/maverick/ubuntu-sso-client

Proposed by Natalia Bidart
Status: Merged
Merged at revision: 15
Proposed branch: lp:~nataliabidart/ubuntu/maverick/ubuntu-sso-client/ubuntu-sso-client-1.0.2
Merge into: lp:ubuntu/maverick/ubuntu-sso-client
Diff against target: 199 lines (+31/-37)
7 files modified
PKG-INFO (+1/-1)
debian/changelog (+16/-0)
debian/preinst (+1/-1)
setup.py (+1/-1)
ubuntu_sso/gui.py (+5/-1)
ubuntu_sso/keyring.py (+3/-15)
ubuntu_sso/tests/test_keyring.py (+4/-18)
To merge this branch: bzr merge lp:~nataliabidart/ubuntu/maverick/ubuntu-sso-client/ubuntu-sso-client-1.0.2
Reviewer Review Type Date Requested Status
Ubuntu Development Team Pending
Review via email: mp+36352@code.launchpad.net

Description of the change

Simple bug fixes, releasing v1.0.2.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'PKG-INFO'
2--- PKG-INFO 2010-09-14 19:28:09 +0000
3+++ PKG-INFO 2010-09-22 17:36:13 +0000
4@@ -1,6 +1,6 @@
5 Metadata-Version: 1.1
6 Name: ubuntu-sso-client
7-Version: 1.0.1
8+Version: 1.0.2
9 Summary: Ubuntu Single Sign-On client
10 Home-page: https://launchpad.net/ubuntu-sso-client
11 Author: Natalia Bidart
12
13=== modified file 'debian/changelog'
14--- debian/changelog 2010-09-14 19:28:09 +0000
15+++ debian/changelog 2010-09-22 17:36:13 +0000
16@@ -1,3 +1,19 @@
17+ubuntu-sso-client (1.0.2-0ubuntu1) UNRELEASED; urgency=low
18+
19+ * New upstream release:
20+
21+ [ Natalia B. Bidart <natalia.bidart@canonical.com> ]
22+ * Avoiding having the main window freezing when pinging the U1 server (LP:
23+ #645162).
24+
25+ [ Alejandro J. Cura <alecu@canonical.com> ]
26+ * Do not create the login keyring, use default instead. (LP: #639690)
27+
28+ [ Natalia B. Bidart <natalia.bidart@canonical.com> ]
29+ * Avoid duplicating logging messages for module "main" (LP: #638981).
30+
31+ -- Natalia Bidart (nessita) <nataliabidart@gmail.com> Wed, 22 Sep 2010 13:47:22 -0300
32+
33 ubuntu-sso-client (1.0.1-0ubuntu1) maverick; urgency=low
34
35 * New upstream release:
36
37=== modified file 'debian/preinst'
38--- debian/preinst 2010-09-09 14:45:42 +0000
39+++ debian/preinst 2010-09-22 17:36:13 +0000
40@@ -3,7 +3,7 @@
41
42 LASTVERSION="0.99.4-0ubuntu1"
43
44-pkill -HUP ubuntu-sso-login || true
45+pkill -HUP -f ubuntu-sso-login || true
46
47 dpkg-maintscript-helper rm_conffile \
48 /etc/xdg/ubuntu-sso/oauth_registration.d/ubuntuone "$LASTVERSION" -- "$@"
49
50=== modified file 'setup.py'
51--- setup.py 2010-09-14 19:28:09 +0000
52+++ setup.py 2010-09-22 17:36:13 +0000
53@@ -86,7 +86,7 @@
54
55 DistUtilsExtra.auto.setup(
56 name='ubuntu-sso-client',
57- version='1.0.1',
58+ version='1.0.2',
59 license='GPL v3',
60 author='Natalia Bidart',
61 author_email='natalia.bidart@canonical.com',
62
63=== modified file 'ubuntu_sso/gui.py'
64--- ubuntu_sso/gui.py 2010-09-08 19:25:02 +0000
65+++ ubuntu_sso/gui.py 2010-09-22 17:36:13 +0000
66@@ -730,10 +730,14 @@
67 signal, method, iface)
68 remove(method, signal_name=signal, dbus_interface=iface)
69
70- # destroy main window
71+ # hide the main window
72 if self.window is not None:
73 self.window.hide()
74
75+ # process any pending events before emitting signals
76+ while gtk.events_pending():
77+ gtk.main_iteration()
78+
79 if len(args) > 0 and args[0] in self.cancels:
80 self.window.emit(SIG_USER_CANCELATION, self.app_name)
81 elif len(self._gtk_signal_log) > 0:
82
83=== modified file 'ubuntu_sso/keyring.py'
84--- ubuntu_sso/keyring.py 2010-09-13 14:43:37 +0000
85+++ ubuntu_sso/keyring.py 2010-09-22 17:36:13 +0000
86@@ -28,7 +28,7 @@
87 from ubuntu_sso.logger import setup_logging
88
89
90-logger = setup_logging("ubuntu_sso.main")
91+logger = setup_logging("ubuntu_sso.keyring")
92 TOKEN_SEPARATOR = ' @ '
93 SEPARATOR_REPLACEMENT = ' AT '
94
95@@ -59,8 +59,6 @@
96 class Keyring(object):
97 """A Keyring for a given application name."""
98
99- KEYRING_NAME = "login"
100-
101 def __init__(self, app_name):
102 """Initialize this instance given the app_name."""
103 if not gnomekeyring.is_available():
104@@ -68,12 +66,6 @@
105 self.app_name = app_name
106 self.token_name = get_token_name(self.app_name)
107
108- def _create_keyring(self, name):
109- """Creates a keyring, or if it already exists, it does nothing."""
110- keyring_names = gnomekeyring.list_keyring_names_sync()
111- if not name in keyring_names:
112- gnomekeyring.create_sync(name, None)
113-
114 def _find_keyring_item(self, attr=None):
115 """Return the keyring item or None if not found."""
116 if attr is None:
117@@ -105,13 +97,9 @@
118 # Creates the secret from the credentials
119 secret = urllib.urlencode(cred)
120
121- # Create the keyring if it does not exists
122- self._create_keyring(self.KEYRING_NAME)
123-
124 # Add our SSO credentials to the keyring
125- gnomekeyring.item_create_sync(self.KEYRING_NAME,
126- gnomekeyring.ITEM_GENERIC_SECRET, self.app_name,
127- self._get_keyring_attr(), secret, True)
128+ gnomekeyring.item_create_sync(None, gnomekeyring.ITEM_GENERIC_SECRET,
129+ self.app_name, self._get_keyring_attr(), secret, True)
130
131 def _migrate_old_token_name(self):
132 """Migrate credentials with old name, store them with new name."""
133
134=== modified file 'ubuntu_sso/tests/test_keyring.py'
135--- ubuntu_sso/tests/test_keyring.py 2010-09-13 14:43:37 +0000
136+++ ubuntu_sso/tests/test_keyring.py 2010-09-22 17:36:13 +0000
137@@ -60,7 +60,6 @@
138
139 def __init__(self):
140 """Initialize this instance."""
141- self.keyrings = set()
142 self.id_counter = itertools.count()
143 self.store = {}
144 self.deleted = []
145@@ -89,14 +88,6 @@
146 raise gnomekeyring.NoMatchError()
147 return items
148
149- def list_keyring_names_sync(self):
150- """The keyring you are looking for may be here."""
151- return self.keyrings
152-
153- def create_sync(self, name, password):
154- """Thanks, I'll create that keyring for you."""
155- self.keyrings.add((name, password))
156-
157 def is_available(self):
158 """A very available keyring."""
159 return True
160@@ -146,9 +137,6 @@
161 self.mgk = MockGnomeKeyring()
162 self.patch(gnomekeyring, "item_create_sync", self.mgk.item_create_sync)
163 self.patch(gnomekeyring, "is_available", self.mgk.is_available)
164- self.patch(gnomekeyring, "create_sync", self.mgk.create_sync)
165- self.patch(gnomekeyring, "list_keyring_names_sync",
166- self.mgk.list_keyring_names_sync)
167 self.patch(gnomekeyring, "find_items_sync", self.mgk.find_items_sync)
168 self.patch(gnomekeyring, "item_delete_sync", self.mgk.item_delete_sync)
169 fake_gethostname = build_fake_gethostname("darkstar")
170@@ -163,8 +151,6 @@
171
172 self.assertEqual(len(self.mgk.store), 2)
173 self.assertEqual(len(self.mgk.deleted), 0)
174- self.assertEqual(self.mgk.keyrings,
175- set([(keyring.Keyring.KEYRING_NAME, None)]))
176
177 def test_delete_ubuntusso(self):
178 """Test that a given key is deleted."""
179@@ -202,8 +188,8 @@
180 "oauth_token_secret": sample_oauth_secret,
181 }
182 secret = urllib.urlencode(old_creds)
183- self.mgk.item_create_sync(keyring.U1_APP_NAME, None,
184- keyring.Keyring.KEYRING_NAME,
185+ self.mgk.item_create_sync(None, None,
186+ keyring.U1_APP_NAME,
187 keyring.U1_KEY_ATTR,
188 secret, True)
189
190@@ -223,8 +209,8 @@
191 "oauth_token_secret": sample_oauth_secret,
192 }
193 secret = urllib.urlencode(old_creds)
194- self.mgk.item_create_sync(keyring.U1_APP_NAME, None,
195- keyring.Keyring.KEYRING_NAME,
196+ self.mgk.item_create_sync(None, None,
197+ keyring.U1_APP_NAME,
198 keyring.U1_KEY_ATTR,
199 secret, True)
200

Subscribers

People subscribed via source and target branches

to all changes: