HELP_TEXT = _("""You need a Google account to use Google Live. To get one, go to http://api.google.com/
When you have created your account, you should recieve a Google API key by mail. Place this key in the file
~/.gnome2/deskbar-applet/Google.key
If you do not receive an API key (or you have lost it) in your account verification mail, then go to www.google.com/accounts and log in. Go to api.google.com, click "Create Account" and enter your e-mail address and password. Your API key will be re-sent.
Now download the developers kit and extract the GoogleSearch.wsdl file from it. Copy this file to
~/.gnome2/deskbar-applet/GoogleSearch.wsdl""")
def _on_more_information(dialog):
deskbar.Utils.more_information_dialog(dialog, _("Setting Up Google Live"), HELP_TEXT)
def _check_requirements():
try:
from SOAPpy import WSDL
except:
return (deskbar.Handler.HANDLER_IS_NOT_APPLICABLE, _("You need to install the SOAPpy python module."), None)
if not exists (GOOGLE_WSDL):
return (deskbar.Handler.HANDLER_HAS_REQUIREMENTS, _("You need the Google WSDL file."), _on_more_information)
if not exists (GOOGLE_API_KEY):
return (deskbar.Handler.HANDLER_HAS_REQUIREMENTS, _("You need a Google API key."), _on_more_information)