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
1=== modified file 'ubuntu_sso/utils/txsecrets.py'
2--- ubuntu_sso/utils/txsecrets.py 2011-04-15 19:56:34 +0000
3+++ ubuntu_sso/utils/txsecrets.py 2011-05-02 08:38:22 +0000
4@@ -46,7 +46,9 @@
5 ALGORITHM = "plain"
6 ALGORITHM_PARAMS = ""
7 LABEL_PROPERTY = "Label"
8-ATTRIBUTES_PROPERTY = "Attributes"
9+LABEL_ITEM_PROPERTY = "org.freedesktop.Secret.Item.Label"
10+LABEL_COLLECTION_PROPERTY = "org.freedesktop.Secret.Collection.Label"
11+ATTRIBUTES_PROPERTY = "org.freedesktop.Secret.Item.Attributes"
12 COLLECTIONS_PROPERTY = "Collections"
13 DEFAULT_LABEL = "default"
14
15@@ -163,8 +165,8 @@
16 else:
17 d.callback(collection)
18
19- properties = {LABEL_PROPERTY: dbus.String(label, variant_level=1)}
20- self.service.CreateCollection(properties,
21+ properties = {LABEL_COLLECTION_PROPERTY: dbus.String(label, variant_level=1)}
22+ self.service.CreateCollection(properties, "default",
23 reply_handler=createcollection_handler,
24 error_handler=d.errback)
25
26@@ -295,7 +297,7 @@
27 error_handler=d.errback)
28
29 properties = dbus.Dictionary(signature="sv")
30- properties[LABEL_PROPERTY] = label
31+ properties[LABEL_ITEM_PROPERTY] = label
32 attributes = dbus.Dictionary(attr, signature="ss")
33 properties[ATTRIBUTES_PROPERTY] = attributes
34 parameters = dbus.ByteArray(ALGORITHM_PARAMS)

Subscribers

People subscribed via source and target branches