def admin(): self.odesk_is_authorized = odesk.is_authorized() self.odesk_access_token = odesk.get_access_token() odesk.logout() self.odesk_is_not_authorized = odesk.is_authorized() return "Welcome, oDesk user!"
def is_authorized(): if odesk.is_authorized(): return "You are authorized!" else: return "Not authorized!"
def index(): if odesk.is_authorized(): return redirect(url_for("options")) else: return render_template("index.html")