~mmcg069/software-center/Bug828223

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk/purchaseview.py

  • Committer: Matthew McGowan
  • Date: 2011-08-20 05:39:03 UTC
  • mfrom: (2131.1.24 software-center)
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20110820053903-hnewqizijfcb9l8m
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
            # gather data from response
219
219
            deb_line = res["deb_line"]
220
220
            signing_key_id = res["signing_key_id"]
 
221
            license_key = res.get("license_key")
 
222
            license_key_path = res.get("license_key_path")
221
223
            # add repo and key
222
 
            get_install_backend().add_repo_add_key_and_install_app(
 
224
            backend = get_install_backend()
 
225
            backend.add_repo_add_key_and_install_app(
223
226
                deb_line, signing_key_id, self.app, self.iconname)
 
227
            if license_key and license_key_path:
 
228
                backend.add_license_key(license_key, license_key_path)
224
229
                                                                   
225
230
    def _block_wk_handlers(self):
226
231
        # we need to block webkit signal handlers when we hide the