Exemple #1
0
def ctrl_trackdump(user):
    data = bottle.request.body.read()

    track = []
    status = 200

    try:
        db.connect()
    except Exception, e:
        log.error("%s" % str(e))
        return False
Exemple #2
0
    def check(self, username, password, apns_token=None):

        if username is None or password is None:
            log.error("Username {0} or password are None".format(username))
            return False

        try:
            db.connect()
        except Exception, e:
            log.error("%s" % str(e))
            return False
Exemple #3
0
def ctrl_trackdump(user):
    data = bottle.request.body.read()

    track = []
    status = 200

    try:
        db.connect()
    except Exception, e:
        log.error("%s" % str(e))
        return False
Exemple #4
0
    def check(self, username, password, apns_token=None):

        if username is None or password is None:
            log.error("Username {0} or password are None".format(username))
            return False
    
        try:
            db.connect()
        except Exception, e:
            log.error("%s" % str(e))
            return False