~mandel/ubuntuone-client/notification-center-support

« back to all changes in this revision

Viewing changes to ubuntuone/platform/windows/ipc.py

- Provide a get_home_dir() method to get a proper home dir in unicode environments (LP: #898640).
- Handle link creation with unicode paths (LP: #891173).

Show diffs side-by-side

added added

removed removed

Lines of Context:
372
372
    remote_calls = [
373
373
        'connect',
374
374
        'disconnect',
 
375
        'get_homedir',
375
376
        'get_rootdir',
376
377
        'get_sharesdir',
377
378
        'get_sharesdir_link',
393
394
        """Disconnect from the server."""
394
395
        self.service.sync.disconnect()
395
396
 
 
397
    def get_homedir(self):
 
398
        """Return the home dir/mount point."""
 
399
        return self.service.sync.get_homedir()
 
400
 
396
401
    def get_rootdir(self):
397
402
        """Return the root dir/mount point."""
398
403
        return self.service.sync.get_rootdir()
647
652
 
648
653
    signal_mapping = {}
649
654
 
650
 
 
651
655
    def get_throttling_limits(self):
652
656
        """Get the read/write limit from AQ and return a dict.
653
657