~ubuntuone-control-tower/ubuntuone-client/stable-13-10

« back to all changes in this revision

Viewing changes to ubuntuone/platform/filesystem_notifications/monitor/darwin/fsevents_client.py

  • Committer: Tarmac
  • Author(s): mike.mccracken at canonical
  • Date: 2013-01-18 16:26:47 UTC
  • mfrom: (1363.6.15 neuter-watchmanager)
  • Revision ID: tarmac-20130118162647-saon8t6q47kdmunx
- Clean up test suite for filesystem_notifications on darwin and windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        self.observer.start()
130
130
 
131
131
    def stop_watch(self, watch):
132
 
        """Stop a given watch."""
 
132
        """Unschedule an observer stream."""
133
133
        watch.stop_watching()
134
134
        self.observer.unschedule(watch.platform_watch.stream)
135
135
        return defer.succeed(True)
139
139
        self.observer.stop()
140
140
        self.observer.join()
141
141
 
142
 
    def del_watch(self, watch):
143
 
        """Delete the watch and clean resources."""
144
 
        self.observer.unschedule(watch.platform_watch.stream)
145
 
 
146
142
    def add_watch(self, watch):
147
143
        """This method perform actually the action of registering the watch."""
148
144
        self.observer.schedule(watch.platform_watch.stream)
150
146
 
151
147
    def rm_watch(self, watch):
152
148
        """Remove the the watch with the given wd."""
 
149
        self.observer.unschedule(watch.platform_watch.stream)