Merge lp:~mvo/software-center/webapps-activation into lp:software-center
Proposed by
Michael Vogt
Status: | Merged |
---|---|
Merged at revision: | 3278 |
Proposed branch: | lp:~mvo/software-center/webapps-activation |
Merge into: | lp:software-center |
Diff against target: |
296 lines (+166/-7) 9 files modified
setup.py (+3/-2) softwarecenter/db/pkginfo.py (+4/-0) softwarecenter/db/pkginfo_impl/aptcache.py (+4/-0) softwarecenter/paths.py (+1/-0) softwarecenter/plugin.py (+1/-0) softwarecenter/plugins/webapps_activation.py (+57/-0) tests/test_region.py (+1/-0) tests/test_webapps_activation_plugin.py (+90/-0) tests/utils.py (+5/-5) |
To merge this branch: | bzr merge lp:~mvo/software-center/webapps-activation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
dobey | Approve | ||
Michael Vogt | Needs Resubmitting | ||
Review via email: mp+134459@code.launchpad.net |
Description of the change
This add support to activate webapps automatically on install.
To post a comment you must log in.
134 + def activate_ unity_webapp_ for_domain( self, domain): "activating webapp for domain '%s'", domain) permissions_ allow_domain( domain)
135 + try:
136 + from gi.repository import UnityWebapps
137 + except ImportError:
138 + LOG.warn("failed to import UnityWebapps GIR")
139 + LOG.debug(
140 + UnityWebapps.
The last two lines in this function need to be inside an else: I think. Otherwise an exception will be raised when permissions_ allow_domain( ) is called, if the import failed, since you're not returning in the except handler. I guess this wasn't caught in your tests, as you're mocking that function.
+ # instal backend
Typo.