~ubuntu-branches/ubuntu/oneiric/ubuntuone-control-panel/oneiric

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/dbus_service.py

* New upstream release:
  [ Alejandro J. Cura <alecu@canonical.com>]
    - Do not throw a webclient error when closing
      (LP: #845105).
  [ Natalia B. Bidart <natalia.bidart@canonical.com> ]
    - Removed all code related to Bookmarks (LP: #850142).
    - Replaces references to "Evolution" by "Thunderbird" (LP: #849494).
  [ Rodney Dawes <rodney.dawes@canonical.com> ]
    - Don't install a .desktop file for control panel
      (part of LP: #838778).
    - Point the indicator/Unity API at the installer .desktop file
      (part of LP: #838778).
    - Set the WMCLASS so Unity will fall back properly
      (part of LP: #838778).
    - Fix a few grammar mistakes (LP: #835093).
    - Don't show the "Get NGB free!" label on "Join now" button at all
      (LP: #819955).
* debian/control:
  - ubuntuone-control-panel-gtk depends now on ubuntuone-installer >= 2.0.0.
  - require ubuntuone-client >= 2.0.0.
  - require ubuntu-sso-client >= 1.4.0.
  - no longer install a .desktop file (will be installed by ubuntuone-installer).

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
 
564
564
    #---
565
565
 
566
 
    @log_call(logger.debug)
567
 
    @method(dbus_interface=DBUS_PREFERENCES_IFACE, in_signature="")
568
 
    def query_bookmark_extension(self):
569
 
        """Check if the extension to sync bookmarks is installed."""
570
 
        d = self.backend.query_bookmark_extension()
571
 
        d.addCallback(self.QueryBookmarksResult)
572
 
        d.addErrback(self.transform(self.QueryBookmarksError))
573
 
 
574
 
    @log_call(logger.debug)
575
 
    @signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="b")
576
 
    def QueryBookmarksResult(self, enabled):
577
 
        """The bookmark extension is or is not installed."""
578
 
 
579
 
    @log_call(logger.error)
580
 
    @signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="a{ss}")
581
 
    def QueryBookmarksError(self, error):
582
 
        """Problem getting the status of the extension."""
583
 
 
584
 
    #---
585
 
 
586
 
    @log_call(logger.info)
587
 
    @method(dbus_interface=DBUS_PREFERENCES_IFACE, in_signature="")
588
 
    def install_bookmarks_extension(self):
589
 
        """Install the extension to sync bookmarks."""
590
 
        d = self.backend.install_bookmarks_extension()
591
 
        d.addCallback(lambda _: self.InstallBookmarksSuccess())
592
 
        d.addErrback(self.transform(self.InstallBookmarksError))
593
 
 
594
 
    @log_call(logger.info)
595
 
    @signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="")
596
 
    def InstallBookmarksSuccess(self):
597
 
        """The extension to sync bookmarks has been installed."""
598
 
 
599
 
    @log_call(logger.error)
600
 
    @signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="a{ss}")
601
 
    def InstallBookmarksError(self, error):
602
 
        """Problem installing the extension to sync bookmarks."""
603
 
 
604
 
    #---
605
 
 
606
566
    @log_call(logger.info)
607
567
    @method(dbus_interface=DBUS_PREFERENCES_IFACE, in_signature="")
608
568
    def shutdown(self):