~facundo/ubuntuone-client/fix-svfilenew-conflict

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/status_listener.py

  • Committer: Facundo Batista
  • Date: 2011-04-04 12:31:43 UTC
  • mfrom: (922.1.9 ubuntuone-client)
  • Revision ID: facundo@taniquetil.com.ar-20110404123143-mobua5abcpinz0o2
TrunkĀ mergedĀ in

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                                      set_show_all_notifications)
61
61
 
62
62
    def handle_AQ_CHANGE_PUBLIC_ACCESS_OK(self, share_id, node_id, is_public,
63
 
                                                  public_url):
 
63
                                          public_url):
64
64
        """The status of a published resource changed."""
65
65
        if is_public:
66
66
            self.status_frontend.file_published(public_url)
73
73
            self.status_frontend.download_started(command)
74
74
        elif isinstance(command, action_queue.Upload):
75
75
            self.status_frontend.upload_started(command)
76
 
        else:
77
 
            self.status_frontend.queue_added(command)
78
76
 
79
77
    def handle_SYS_QUEUE_REMOVED(self, command):
80
78
        """A command has been removed from the queue."""
82
80
            self.status_frontend.download_finished(command)
83
81
        elif isinstance(command, action_queue.Upload):
84
82
            self.status_frontend.upload_finished(command)
85
 
        else:
86
 
            self.status_frontend.queue_removed(command)
87
83
 
88
84
    def handle_SYS_QUEUE_DONE(self):
89
85
        """The queue has finished processing everything."""