Merge lp:~bigon/ubuntu-sso-client/gnome3-gnome-keyring into lp:ubuntu-sso-client

Proposed by Laurent Bigonville
Status: Rejected
Rejected by: dobey
Proposed branch: lp:~bigon/ubuntu-sso-client/gnome3-gnome-keyring
Merge into: lp:ubuntu-sso-client
Diff against target: 34 lines (+6/-4)
1 file modified
ubuntu_sso/utils/txsecrets.py (+6/-4)
To merge this branch: bzr merge lp:~bigon/ubuntu-sso-client/gnome3-gnome-keyring
Reviewer Review Type Date Requested Status
dobey (community) Needs Fixing
Review via email: mp+59647@code.launchpad.net
To post a comment you must log in.
Revision history for this message
dobey (dobey) wrote :

This is a separate issue from the CreateItem bug. Your patch also breaks compatibility with gnome-keyring 2.x, which we need to maintain. And you will need to sign the Canonical Contributor Agreement as detailed on http://www.canonical.com/contributors .

Thanks.

review: Needs Fixing

Unmerged revisions

712. By Laurent Bigonville

Further fixes for new secret-service D-Bus API (LP: #745540)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ubuntu_sso/utils/txsecrets.py'
--- ubuntu_sso/utils/txsecrets.py 2011-04-15 19:56:34 +0000
+++ ubuntu_sso/utils/txsecrets.py 2011-05-02 08:38:22 +0000
@@ -46,7 +46,9 @@
46ALGORITHM = "plain"46ALGORITHM = "plain"
47ALGORITHM_PARAMS = ""47ALGORITHM_PARAMS = ""
48LABEL_PROPERTY = "Label"48LABEL_PROPERTY = "Label"
49ATTRIBUTES_PROPERTY = "Attributes"49LABEL_ITEM_PROPERTY = "org.freedesktop.Secret.Item.Label"
50LABEL_COLLECTION_PROPERTY = "org.freedesktop.Secret.Collection.Label"
51ATTRIBUTES_PROPERTY = "org.freedesktop.Secret.Item.Attributes"
50COLLECTIONS_PROPERTY = "Collections"52COLLECTIONS_PROPERTY = "Collections"
51DEFAULT_LABEL = "default"53DEFAULT_LABEL = "default"
5254
@@ -163,8 +165,8 @@
163 else:165 else:
164 d.callback(collection)166 d.callback(collection)
165167
166 properties = {LABEL_PROPERTY: dbus.String(label, variant_level=1)}168 properties = {LABEL_COLLECTION_PROPERTY: dbus.String(label, variant_level=1)}
167 self.service.CreateCollection(properties,169 self.service.CreateCollection(properties, "default",
168 reply_handler=createcollection_handler,170 reply_handler=createcollection_handler,
169 error_handler=d.errback)171 error_handler=d.errback)
170172
@@ -295,7 +297,7 @@
295 error_handler=d.errback)297 error_handler=d.errback)
296298
297 properties = dbus.Dictionary(signature="sv")299 properties = dbus.Dictionary(signature="sv")
298 properties[LABEL_PROPERTY] = label300 properties[LABEL_ITEM_PROPERTY] = label
299 attributes = dbus.Dictionary(attr, signature="ss")301 attributes = dbus.Dictionary(attr, signature="ss")
300 properties[ATTRIBUTES_PROPERTY] = attributes302 properties[ATTRIBUTES_PROPERTY] = attributes
301 parameters = dbus.ByteArray(ALGORITHM_PARAMS)303 parameters = dbus.ByteArray(ALGORITHM_PARAMS)

Subscribers

People subscribed via source and target branches