~ralsina/ubuntuone-client/ignore-goutput

« back to all changes in this revision

Viewing changes to ubuntuone/platform/credentials/linux.py

  • Committer: Tarmac
  • Author(s): Alejandro J. Cura, Rodney Dawes
  • Date: 2012-05-28 14:16:22 UTC
  • mfrom: (1246.1.3 signature-dict)
  • Revision ID: tarmac-20120528141622-awm3y5zoxanjs1gf
- Use dbus.Dictionary to specify signature when using empty dicts for SSO calls. (LP: #711162)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
# files in the program, then also delete it here.
31
31
"""Ubuntu One credentials management dbus service."""
32
32
 
 
33
import dbus
33
34
import dbus.service
34
35
import ubuntu_sso
35
36
 
181
182
    def find_credentials(self, reply_handler=NO_OP, error_handler=NO_OP):
182
183
        """Ask the Ubuntu One credentials."""
183
184
        self.ref_count += 1
184
 
        self.sso_proxy.find_credentials(APP_NAME, {},
 
185
        self.sso_proxy.find_credentials(APP_NAME,
 
186
                                        dbus.Dictionary({}, signature='ss'),
185
187
            reply_handler=reply_handler, error_handler=error_handler)
186
188
 
187
189
    @dbus.service.method(dbus_interface=DBUS_CREDENTIALS_IFACE,
205
207
            self.ref_count -= 1
206
208
 
207
209
        self.ref_count += 1
208
 
        self.sso_proxy.find_credentials_sync(APP_NAME, {},
 
210
        self.sso_proxy.find_credentials_sync(
 
211
            APP_NAME,
 
212
            dbus.Dictionary({}, signature='ss'),
209
213
            reply_handler=decrease_counter_success,
210
214
            error_handler=decrease_counter_error)
211
215
 
214
218
    def clear_credentials(self, reply_handler=NO_OP, error_handler=NO_OP):
215
219
        """Clear the Ubuntu One credentials."""
216
220
        self.ref_count += 1
217
 
        self.sso_proxy.clear_credentials(APP_NAME, {},
 
221
        self.sso_proxy.clear_credentials(APP_NAME,
 
222
                                         dbus.Dictionary({}, signature='ss'),
218
223
            reply_handler=reply_handler, error_handler=error_handler)
219
224
 
220
225
    @dbus.service.method(dbus_interface=DBUS_CREDENTIALS_IFACE,