~ubuntuone-control-tower/ubuntuone-client/trunk

« back to all changes in this revision

Viewing changes to ubuntuone/status/aggregator.py

  • Committer: Tarmac
  • Author(s): Diego Sarmentero, Rodney Dawes
  • Date: 2014-04-11 14:23:37 UTC
  • mfrom: (1403.1.8 ubuntuone-client)
  • Revision ID: tarmac-20140411142337-vg6lk4a6a5au0jag
- Show a message when the client is started indicating that the service will be suspended on June 1st.
- After June 1st, don't contact the server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
Q_ = lambda string: gettext.dgettext(GETTEXT_PACKAGE, string)
52
52
 
53
53
UBUNTUONE_TITLE = Q_("Ubuntu One")
 
54
UBUNTUONE_END = Q_("Ubuntu One file services will be "
 
55
                   "shutting down on June 1st, 2014.\nThanks for your support.")
54
56
NEW_UDFS_SENDER = Q_("New cloud folder(s) available")
55
57
FINAL_COMPLETED = Q_("File synchronization completed.")
56
58
 
827
829
        self.syncdaemon_service = service
828
830
        self.sync_menu = None
829
831
        self.start_sync_menu()
 
832
        self.farewell_ubuntuone_sync()
 
833
 
 
834
    def farewell_ubuntuone_sync(self):
 
835
        """Show notification about the upcoming end of UbuntuOne sync."""
 
836
        self.notification.send_notification(
 
837
            UBUNTUONE_TITLE, UBUNTUONE_END)
830
838
 
831
839
    def start_sync_menu(self):
832
840
        """Create the sync menu and register the progress listener."""