~dobey/ubuntuone-client/installer-not-panel

« back to all changes in this revision

Viewing changes to ubuntuone/platform/tools/__init__.py

- Exported validate_path_from_folder from volume_manager instead of ubuntuone-control-panel's backend (lp:824252)

Show diffs side-by-side

added added

removed removed

Lines of Context:
441
441
 
442
442
    @defer.inlineCallbacks
443
443
    @log_call(logger.debug)
 
444
    def validate_path(self, path):
 
445
        """Return True if the path is valid for a folder."""
 
446
        result = yield self.proxy.call_method('folders', 'validate', path)
 
447
        self.log.debug('valid: %r', result)
 
448
        defer.returnValue(result)
 
449
 
 
450
    @defer.inlineCallbacks
 
451
    @log_call(logger.debug)
444
452
    def get_folders(self):
445
453
        """Return the list of folders (a list of dicts)."""
446
454
        results = yield self.proxy.call_method('folders', 'get_folders')