From 16405360cc95f5cc5dd5126e99906f7967439678 Mon Sep 17 00:00:00 2001 From: Fredrik Wendt Date: Mon, 7 Jun 2010 17:17:20 +0100 Subject: [PATCH] moved API keys for LinkedIn to gconf (and postinst) --- package/debian/hermes.postinst | 7 +++++-- .../src/org/maemo/hermes/engine/linkedin/api.py | 4 ---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package/debian/hermes.postinst b/package/debian/hermes.postinst index 69b5b56..0831277 100644 --- a/package/debian/hermes.postinst +++ b/package/debian/hermes.postinst @@ -3,8 +3,11 @@ set -e gconftool-2 -s /apps/maemo/hermes/facebook_app 5916f12942feea4b3247d42a84371112 --type string gconftool-2 -s /apps/maemo/hermes/facebook_secret 19f7538edd96b6870f2da7e84a6390a4 --type string -gconftool-2 -s /apps/maemo/hermes/gravatar_email TODO --type string -gconftool-2 -s /apps/maemo/hermes/gravatar_key TODO --type string +gconftool-2 -s /apps/maemo/hermes/gravatar_email maemohermes@wendt.se --type string +gconftool-2 -s /apps/maemo/hermes/gravatar_key b14ec179822b --type string +gconftool-2 -s /apps/maemo/hermes/linkedin_api_key '1et4G-VtmtqNfY7gF8PHtxMOf0KNWl9ericlTEtdKJeoA4ubk4wEQwf8lSL8AnYE' --type string +gconftool-2 -s /apps/maemo/hermes/linkedin_key_secret 'uk--OtmWcxER-Yh6Py5p0VeLPNlDJSMaXj1xfHILoFzrK7fM9eepNo5RbwGdkRo_' --type string + # Version 0.2.1 changed type of /apps/maemo/hermes/uid diff --git a/package/src/org/maemo/hermes/engine/linkedin/api.py b/package/src/org/maemo/hermes/engine/linkedin/api.py index 5f2fd96..76246eb 100644 --- a/package/src/org/maemo/hermes/engine/linkedin/api.py +++ b/package/src/org/maemo/hermes/engine/linkedin/api.py @@ -37,10 +37,6 @@ class LinkedInApi(): api_key = self._gc.get_string('/apps/maemo/hermes/linkedin_api_key') secret_key = self._gc.get_string('/apps/maemo/hermes/linkedin_key_secret') - # FIXME: move this to gconf and postinst - api_key = '1et4G-VtmtqNfY7gF8PHtxMOf0KNWl9ericlTEtdKJeoA4ubk4wEQwf8lSL8AnYE' - secret_key = 'uk--OtmWcxER-Yh6Py5p0VeLPNlDJSMaXj1xfHILoFzrK7fM9eepNo5RbwGdkRo_' - if api_key is None or secret_key is None: raise Exception('No LinkedIn application keys found. Installation error.') -- 1.7.9.5