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
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