def _loadFromGaeSession(self): existing_google_auth_session = self.gaesession.get("googleAuthSession") if existing_google_auth_session: debug("before update %s" % dumps(self)) debug("existing keys %s" % existing_google_auth_session.keys()) debug("existing %s" % dumps(existing_google_auth_session)) assert isinstance(existing_google_auth_session, GoogleAuthSession) self.update(existing_google_auth_session) debug("after update %s" % dumps(self))
def _isJsonizable(self): try: x = dumps(self) return True if len(x) else False except: return None