X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fgc_backend.py;h=b4f54692af6b37f1986c89ae01be27215c1bb739;hb=0c190c1e9a2f247ba882842f6680259e2c4e8ee3;hp=9af4df7d10ee9eb351e90dd1729afc920f89e5c2;hpb=d3a7afe7b3df3d057540153bde98cc5e2b92379c;p=gc-dialer diff --git a/src/gc_backend.py b/src/gc_backend.py index 9af4df7..b4f5469 100644 --- a/src/gc_backend.py +++ b/src/gc_backend.py @@ -1,24 +1,24 @@ #!/usr/bin/python -# GC Dialer - Front end for Google's Grand Central service. -# Copyright (C) 2008 Eric Warnke ericew AT gmail DOT com -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - """ -Grandcentral Dialer backend code +DialCentral - Front end for Google's Grand Central service. +Copyright (C) 2008 Eric Warnke ericew AT gmail DOT com + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Grandcentral backend code """ @@ -28,8 +28,10 @@ import urllib import urllib2 import time import warnings +import traceback +from xml.sax import saxutils -from browser_emu import MozillaEmulator +import browser_emu class GCDialer(object): @@ -42,12 +44,11 @@ class GCDialer(object): _accessTokenRe = re.compile(r"""]*value="(.*)"/>""") _isLoginPageRe = re.compile(r"""