~diegosarmentero/ubuntuone-control-panel/tab-shares-functions

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/tests/test_backend.py

  • Committer: Diego Sarmentero
  • Date: 2012-08-27 15:00:01 UTC
  • Revision ID: diego.sarmentero@canonical.com-20120827150001-s38piznavj4qfnhz
tests fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
        return self.menu_data
342
342
 
343
343
    def get_public_files(self):
344
 
        """Obtain the data to create the sync menu."""
 
344
        """Trigger the action to get the public files."""
345
345
        if self.public_files_list_handler is not None:
346
346
            self.public_files_list_handler(self.publicfiles)
347
347
 
348
348
    def set_public_files_list_handler(self, handler):
349
 
        """Obtain the data to create the sync menu."""
 
349
        """Return the handler to be called for the public files list."""
350
350
        self.public_files_list_handler = handler
351
351
 
352
352
    def change_public_access(self, path, is_public):
353
 
        """Obtain the data to create the sync menu."""
 
353
        """Change the type access of a file."""
354
354
        if self.public_access_changed_handler is not None and is_public:
355
355
            self.public_access_changed_handler(self.public_access_info)
356
356
 
357
357
    def set_public_access_changed_handler(self, handler):
358
 
        """Obtain the data to create the sync menu."""
 
358
        """Return the handler to be called when a access type change."""
359
359
        self.public_access_changed_handler = handler
360
360
 
361
361