def dologin(): email = request.form['email'] password = request.form['password'] if email == '*****@*****.**' and password == 'adm': return util.toJSON('{"success": true}') return util.toJSON('{"success": false}')
def security_create_session(): res = util.post_service('/security/session/', '', {'ppk': 'aaa'}) return util.toJSON(res)
def security_get_session(): res = util.get_service('/security/session/') return util.toJSON(res)
def post(post_id): res = util.get_service('/collab/post/', post_id) return util.toJSON(res)