~brian.curtin/ubuntuone-control-panel/run-tests-buildout-cleanup

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/utils/__init__.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-03-30 18:16:33 UTC
  • mfrom: (301.2.9 uninstall)
  • Revision ID: tarmac-20120330181633-7w7lc1q87fdp65tl
- When user rejects the License, also uninstall the application (LP: #968327).

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
# ignore issues with the name of the method
33
33
# pylint: disable=C0103
34
34
 
 
35
no_op = lambda *args, **kwargs: None
 
36
 
35
37
# import the platform dependent code.
36
38
if sys.platform == 'win32':
37
39
    from ubuntuone.controlpanel.utils import windows
 
40
    add_to_autostart = windows.add_to_autostart
38
41
    are_updates_present = windows.are_updates_present
39
42
    default_folders = windows.default_folders
40
43
    perform_update = windows.perform_update
41
 
    add_to_autostart = windows.add_to_autostart
 
44
    uninstall_application = windows.uninstall_application
42
45
else:
43
46
    from ubuntuone.controlpanel.utils import linux
44
 
    are_updates_present = lambda *args, **kwargs: False
 
47
    add_to_autostart = no_op
 
48
    are_updates_present = no_op
45
49
    default_folders = linux.default_folders
46
 
    perform_update = lambda *args, **kwargs: None
47
 
    add_to_autostart = lambda *args, **kwargs: None
 
50
    perform_update = no_op
 
51
    uninstall_application = no_op
48
52
 
49
53
# pylint: enable=C0103
50
54