~ubuntu-branches/ubuntu/lucid/ubuntuone-client/lucid-proposed

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/event_queue.py

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2009-09-28 18:15:00 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090928181500-m9bvq30xzi51grwf
Tags: 0.96.0-0ubuntu1
* New upstream release.
  - Make preferences more accessible (LP: #434884)
  - Handle errors better when sharing from Nautilus (LP: #381012)
  - Use a better icon size for notifications (LP: #423034)
  - Remove partial file handling from nautilus extension (LP: #429482)

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    'SV_ACCOUNT_CHANGED': ('account_info',),
82
82
    'HQ_HASH_NEW': ('path', 'hash', 'crc32', 'size', 'stat'),
83
83
    'HQ_HASH_ERROR': ('mdid',),
 
84
    'LR_SCAN_ERROR': ('mdid',),
84
85
    'SYS_CONNECT': ('access_token',),
85
86
    'SYS_DISCONNECT': (),
86
87
    'SYS_STATE_CHANGED': ('state',),
430
431
        result = self._inotify_wm.add_watch(dirpath, INOTIFY_EVENTS)
431
432
        self._watchs[dirpath] = result[dirpath]
432
433
 
 
434
    def inotify_has_watch(self, dirpath):
 
435
        '''Check if a dirpath is watched.'''
 
436
        return dirpath in self._watchs
 
437
 
433
438
    def unsubscribe(self, obj):
434
439
        '''Removes the callback object from the listener queue.
435
440
 
522
527
                method = functools.partial(method, event_name)
523
528
        return method
524
529
 
 
530
    def is_frozen(self):
 
531
        """Checks if there's something frozen."""
 
532
        return self._processor.frozen_path is not None
 
533
 
525
534
    def freeze_begin(self, path):
526
535
        """Puts in hold all the events for this path."""
527
536
        if self._processor.frozen_path is not None: