projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cfb65c1
)
Removing some debug stuff
author
Ed Page
<eopage@byu.net>
Sun, 13 Dec 2009 05:09:31 +0000
(23:09 -0600)
committer
Ed Page
<eopage@byu.net>
Sun, 13 Dec 2009 05:09:31 +0000
(23:09 -0600)
src/gvoice/backend.py
patch
|
blob
|
history
diff --git
a/src/gvoice/backend.py
b/src/gvoice/backend.py
index
143ad2f
..
435ebb8
100755
(executable)
--- a/
src/gvoice/backend.py
+++ b/
src/gvoice/backend.py
@@
-142,6
+142,12
@@
class GVoiceBackend(object):
self._smsTimeRegex = re.compile(r"""<span class="gc-message-sms-time">(.*?)</span>""", re.MULTILINE | re.DOTALL)
self._smsTextRegex = re.compile(r"""<span class="gc-message-sms-text">(.*?)</span>""", re.MULTILINE | re.DOTALL)
self._smsTimeRegex = re.compile(r"""<span class="gc-message-sms-time">(.*?)</span>""", re.MULTILINE | re.DOTALL)
self._smsTextRegex = re.compile(r"""<span class="gc-message-sms-text">(.*?)</span>""", re.MULTILINE | re.DOTALL)
+ def is_quick_login_possible(self):
+ """
+ @returns True then is_authed might be enough to login, else full login is required
+ """
+ return self._loadedFromCookies or 0.0 < self._lastAuthed
+
def is_authed(self, force = False):
"""
Attempts to detect a current session
def is_authed(self, force = False):
"""
Attempts to detect a current session
@@
-259,7
+265,6
@@
class GVoiceBackend(object):
self._callUrl,
callData,
)
self._callUrl,
callData,
)
- _moduleLogger.info(page)
self._parse_with_validation(page)
return True
self._parse_with_validation(page)
return True