Ejemplo n.º 1
0
    def loadAuthKey(self):
        logging.debug("Loading auth key from datastore")
        key = AuthKey.get_by_key_name("AUTHKEY")
        if key is None:
            return None

        return key.auth
Ejemplo n.º 2
0
    def loadAuthKey(self):
        logging.debug("Loading auth key from datastore")
        key = AuthKey.get_by_key_name("AUTHKEY")
        if key is None:
            return None

        return key.auth 
Ejemplo n.º 3
0
 def saveAuthKey(self, lines):
     logging.info("Saving auth key to datastore")
     key = AuthKey(key_name = "AUTHKEY")
     key.sid = lines[0][4:-1]
     key.lsid = lines[1][5:-1]
     key.auth = lines[2][5:-1]
     key.put()
Ejemplo n.º 4
0
 def saveAuthKey(self, lines):
     logging.info("Saving auth key to datastore")
     key = AuthKey(key_name="AUTHKEY")
     key.sid = lines[0][4:-1]
     key.lsid = lines[1][5:-1]
     key.auth = lines[2][5:-1]
     key.put()
Ejemplo n.º 5
0
    def handle(self, user):
        logging.info("Wiping everything for user %s" % user.user_id)
        
        query = GcmToken.all()
        query.ancestor(user)
        db.delete(query)

        query = Message.all()
        query.ancestor(user)
        db.delete(query)

        query = AuthKey.all()
        query.ancestor(user)
        db.delete(query)

        user.delete()
Ejemplo n.º 6
0
    def handle(self, user):
        logging.info("Wiping everything for user %s" % user.user_id)

        query = C2dmToken.all()
        query.ancestor(user)
        db.delete(query)

        query = Message.all()
        query.ancestor(user)
        db.delete(query)

        query = AuthKey.all()
        query.ancestor(user)
        db.delete(query)

        user.delete()