Module ImportFrom alias ImportFrom alias identifier ImportFrom alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad NameLoad FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Dict Str SubscriptLoad NameLoad Index Str If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Str Return Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Dict Str AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Str If BoolOpOr CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotIn Str NameLoad body Return Call NameLoad Call NameLoad Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot NameLoad body Expr Call NameLoad Str orelse If CompareNotIn Str NameLoad body Expr Call NameLoad Str orelse Expr Call NameLoad Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Return Call NameLoad Call AttributeLoad NameLoad attr Return Call NameLoad Str keyword Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Num Assign NameStore Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad NameLoad attr Str body If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call NameLoad Str Return Call NameLoad Call NameLoad Str Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call NameLoad Str orelse If CompareNotIn Str SubscriptLoad NameLoad Index Str body Expr Call NameLoad Str orelse Expr Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad Str Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str
N/A mongo_demoprovider app models ResourceOwner User flask g session render_template request redirect flash flask abort url_for flask.ext.openid OpenID N/A oid N/A OpenID app before_request N/A N/A N/A N/A N/A N/A g user None N/A N/A openid session N/A N/A user_dict N/A N/A User find_one N/A openid N/A session N/A openid N/A user_dict N/A N/A N/A g user N/A User N/A N/A N/A N/A g user update user_dict N/A N/A app before_request index N/A N/A N/A N/A N/A N/A render_template index.html N/A N/A N/A app route / login N/A N/A N/A N/A N/A Does the login via OpenID.  Has to call into `oid.try_login`
    to start the OpenID machinery.
     N/A N/A N/A g user None N/A N/A N/A redirect N/A N/A oid get_next_url N/A N/A N/A request method POST N/A N/A openid N/A N/A N/A request form get openid N/A openid N/A N/A N/A N/A oid try_login openid ask_for N/A email fullname nickname N/A N/A render_template login.html next N/A N/A oid get_next_url error N/A N/A oid fetch_error N/A N/A N/A app route /login methods N/A GET POST N/A oid loginhandler create_or_login N/A N/A resp N/A N/A N/A This is called when login with OpenID succeeded and it's not
    necessary to figure out if this is the users's first login or not.
    This function has to redirect otherwise the user will be presented
    with a terrible URL which we certainly don't want.
     N/A N/A session N/A openid N/A resp identity_url N/A user N/A N/A N/A N/A User get_collection find_one N/A openid N/A resp identity_url N/A N/A user None N/A N/A N/A flash Successfully signed in N/A N/A g user user N/A N/A redirect N/A N/A oid get_next_url N/A N/A redirect N/A url_for create_profile next N/A N/A oid get_next_url name N/A N/A resp fullname N/A resp nickname email N/A resp email N/A N/A oid after_login create_profile N/A N/A N/A N/A N/A If this is the user's first login, the create_or_login function
    will redirect here so that the user can set up his profile.
     N/A N/A N/A N/A g user None N/A openid session N/A N/A N/A redirect N/A url_for index N/A N/A N/A request method POST N/A N/A name N/A N/A request form N/A name N/A email N/A N/A request form N/A email N/A N/A name N/A N/A N/A flash Error: you have to provide a name N/A N/A N/A @ email N/A N/A N/A flash Error: you have to enter a valid email address N/A N/A N/A flash Profile successfully created N/A N/A N/A N/A N/A User get_collection insert N/A User name email N/A session N/A openid N/A N/A redirect N/A N/A oid get_next_url N/A N/A render_template create_profile.html next_url N/A N/A oid get_next_url N/A N/A N/A app route /create-profile methods N/A GET POST edit_profile N/A N/A N/A N/A N/A Updates a profile N/A N/A N/A g user None N/A N/A N/A abort 401 N/A form N/A dict name N/A N/A g user name email N/A N/A g user email N/A N/A N/A request method POST N/A N/A N/A delete N/A request form N/A N/A N/A N/A N/A N/A User get_collection remove N/A g user N/A N/A session N/A openid None N/A N/A flash Profile deleted N/A N/A redirect N/A url_for index N/A N/A form N/A name N/A N/A request form N/A name N/A N/A form N/A email N/A N/A request form N/A email N/A N/A N/A form N/A name N/A N/A N/A flash Error: you have to provide a name N/A N/A N/A @ N/A form N/A email N/A N/A N/A flash Error: you have to enter a valid email address N/A N/A N/A flash Profile successfully created N/A N/A N/A g user name N/A form N/A name N/A N/A N/A g user email N/A form N/A email N/A uid N/A N/A N/A N/A User get_collection save N/A g user N/A N/A redirect N/A url_for edit_profile N/A N/A render_template edit_profile.html form form N/A N/A N/A app route /profile methods N/A GET POST logout N/A N/A N/A N/A N/A N/A N/A session pop openid None N/A N/A flash You have been signed out N/A N/A redirect N/A N/A oid get_next_url N/A N/A N/A app route /logout