HELP_TEXT = _('You need a Google account to use Google Live. To get one, go to http://api.google.com/\n\nWhen you have created your account, you should recieve a Google API key by mail. Place this key in the file\n\n~/.gnome2/deskbar-applet/Google.key\n\nIf 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.\n\nNow download the developers kit and extract the GoogleSearch.wsdl file from it. Copy this file to\n\n~/.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:
WSDL = WSDL
import SOAPpy
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)