Module Expr Str Assign NameStore TupleLoad Str Str Str Import alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body TryExcept body Import alias identifier handlers ExceptHandler body Import alias identifier ImportFrom alias alias alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias alias Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Num BinOpMod NameLoad NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword TupleLoad Num Num attr If NameLoad body Assign NameStore Dict Str Str Str Str Str Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad Call Call NameLoad BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num Index Num SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str Num Call AttributeLoad NameLoad attr Str Str Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str keyword Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr CompareEq NameLoad Num CompareGt NameLoad Call AttributeLoad NameLoad attr body Return SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call AttributeLoad NameLoad attr finalbody Delete AttributeDel NameLoad attr If NameLoad body TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Num BinOpMod NameLoad NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword TupleLoad Num Num attr If NameLoad body Assign NameStore Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Assign NameStore IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num Str Assign NameStore IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Index Str BinOpMod Str Dict Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Str IfExp Call AttributeLoad NameLoad attr Str NameLoad Num Num Call AttributeLoad NameLoad attr Str Str Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr CompareEq NameLoad Num CompareGt NameLoad Call AttributeLoad NameLoad attr body Return SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call AttributeLoad NameLoad attr finalbody Delete AttributeDel NameLoad attr If NameLoad body TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Num BinOpMod NameLoad NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword TupleLoad Num Num attr If NameLoad body Assign NameStore Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A N/A  Authentication via Facebook & Google

    @requires: U{B{I{gluon}} <http://web2py.com>}

    @copyright: (c) 2010-2016 Sahana Software Foundation
    @license: MIT

    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation
    files (the "Software"), to deal in the Software without
    restriction, including without limitation the rights to use,
    copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following
    conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    OTHER DEALINGS IN THE SOFTWARE.
 N/A __all__ N/A FaceBookAccount GooglePlusAccount HumanitarianIDAccount N/A time N/A urllib N/A urllib2 N/A N/A N/A json N/A N/A N/A ImportError N/A N/A N/A N/A simplejson json N/A N/A N/A N/A gluon.contrib.simplejson json gluon current HTTP IS_SLUG gluon.contrib.login_methods.oauth20_account OAuthAccount N/A REDIRECT_MSG You are not authenticated: you are being redirected to the <a href='%s'> authentication server</a> FaceBookAccount N/A OAuthAccount N/A N/A  OAuth implementation for FaceBook  N/A AUTH_URL https://graph.facebook.com/oauth/authorize N/A TOKEN_URL https://graph.facebook.com/oauth/access_token __init__ N/A N/A self channel N/A N/A N/A 
            Constructor

            @param channel: Facebook channel (Row) with API credentials:
                            {app_id=clientID, app_secret=clientSecret}
         facebook GraphAPI GraphAPIError N/A N/A self GraphAPI GraphAPI N/A N/A self GraphAPIError GraphAPIError N/A scope email,user_about_me,user_location,user_photos,user_relationships,user_birthday,user_website,create_event,user_events,publish_stream N/A redirect_uri N/A %s/%s/default/facebook/login N/A N/A N/A settings get_base_public_url N/A request application N/A N/A N/A OAuthAccount __init__ self client_id N/A channel app_id client_secret N/A channel app_secret auth_url N/A self AUTH_URL token_url N/A self TOKEN_URL scope scope redirect_uri redirect_uri N/A N/A self graph None N/A login_url N/A N/A self next N/A / N/A N/A  Overriding to produce a different redirect_uri  N/A N/A N/A N/A self accessToken N/A N/A request N/A current request N/A session N/A current session N/A N/A N/A N/A request vars code N/A N/A N/A session redirect_uri N/A N/A self args N/A redirect_uri N/A data N/A redirect_uri response_type client_id N/A session redirect_uri code N/A self client_id N/A N/A self args N/A N/A N/A N/A data update N/A self args N/A auth_request_url N/A %s?%s N/A N/A self auth_url N/A N/A urllib urlencode data N/A N/A HTTP 307 N/A REDIRECT_MSG auth_request_url Location auth_request_url N/A N/A N/A session code N/A N/A request vars code N/A N/A N/A self accessToken N/A next N/A get_user N/A N/A self N/A N/A N/A  Returns the user using the Graph API.  N/A token N/A N/A self accessToken N/A N/A token N/A N/A None N/A N/A N/A self graph N/A N/A N/A self graph N/A N/A self GraphAPI token N/A user None N/A N/A N/A user N/A N/A N/A self graph get_object_c me N/A N/A N/A N/A self GraphAPIError N/A N/A N/A N/A current session token None N/A N/A self graph None N/A user_dict None N/A user N/A N/A auth N/A current auth N/A table N/A N/A auth settings table_user N/A query N/A N/A table email N/A user N/A email N/A existent N/A N/A N/A N/A N/A N/A current db query select N/A table id N/A table password limitby N/A 0 1 first N/A existent N/A N/A user_dict N/A first_name last_name facebookid facebook email password N/A N/A user get first_name N/A N/A user get last_name N/A user N/A id N/A N/A user get username N/A user N/A id N/A user N/A email N/A existent password N/A N/A N/A N/A auth s3_send_welcome_email user N/A user_dict N/A first_name last_name facebookid facebook nickname email about website photo_source tagline registration_type N/A N/A user get first_name N/A N/A user get last_name N/A user N/A id N/A N/A user get username N/A user N/A id N/A N/A N/A IS_SLUG N/A N/A N/A N/A user get username N/A %(first_name)s-%(last_name)s user - N/A N/A user N/A id N/A 5 N/A 0 N/A user N/A email N/A N/A user get bio N/A N/A user get website 3 N/A N/A user get link 2 N/A user_dict N/A N/A GooglePlusAccount N/A OAuthAccount N/A N/A 
        OAuth implementation for Google
        https://code.google.com/apis/console/
     N/A AUTH_URL https://accounts.google.com/o/oauth2/auth N/A TOKEN_URL https://accounts.google.com/o/oauth2/token N/A API_URL https://www.googleapis.com/oauth2/v1/userinfo __init__ N/A N/A self channel N/A N/A N/A 
            Constructor

            @param channel: dict with Google API credentials:
                            {id=clientID, secret=clientSecret}
         N/A request N/A current request N/A settings N/A current deployment_settings N/A scope https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile N/A user_agent google-api-client-python-plus-cmdline/1.0 N/A redirect_uri N/A %s/%s/default/google/login N/A N/A N/A settings get_base_public_url N/A request application N/A N/A N/A OAuthAccount __init__ self client_id N/A channel N/A id client_secret N/A channel N/A secret auth_url N/A self AUTH_URL token_url N/A self TOKEN_URL scope scope user_agent user_agent xoauth_displayname N/A N/A settings get_system_name response_type code redirect_uri redirect_uri approval_prompt force state google N/A N/A self graph None N/A __build_url_opener N/A N/A self uri N/A N/A N/A 
            Build the url opener for managing HTTP Basic Authentication
         N/A auth_handler N/A N/A urllib2 HTTPBasicAuthHandler N/A N/A N/A auth_handler add_password None uri N/A self client_id N/A self client_secret N/A opener N/A N/A urllib2 build_opener auth_handler N/A opener N/A accessToken N/A N/A self N/A N/A N/A 
            Return the access token generated by the authenticating server.

            If token is already in the session that one will be used.
            Otherwise the token is fetched from the auth server.
         N/A session N/A current session N/A token N/A session token N/A N/A token N/A expires token N/A N/A expires N/A token N/A expires N/A N/A N/A expires 0 N/A expires N/A N/A time time N/A N/A N/A token N/A access_token N/A code N/A session code N/A code N/A N/A data N/A client_id client_secret redirect_uri code grant_type scope N/A self client_id N/A self client_secret N/A N/A self args N/A redirect_uri code authorization_code N/A N/A self args N/A scope N/A open_url None N/A opener N/A N/A self __build_url_opener N/A self token_url N/A N/A N/A N/A N/A open_url N/A N/A opener open N/A self token_url N/A N/A urllib urlencode data N/A N/A N/A N/A urllib2 HTTPError N/A e N/A N/A N/A Exception N/A N/A e read N/A N/A N/A session code N/A open_url N/A N/A N/A N/A token N/A N/A json loads N/A N/A open_url read N/A N/A token N/A expires N/A N/A int N/A token N/A expires_in N/A N/A time time N/A N/A N/A N/A opener close N/A N/A session token token N/A N/A token N/A access_token N/A N/A session token None N/A None N/A login_url N/A N/A self next N/A / N/A N/A  Overriding to produce a different redirect_uri  N/A N/A N/A N/A self accessToken N/A N/A request N/A current request N/A session N/A current session N/A N/A N/A N/A request vars code N/A N/A N/A session redirect_uri N/A N/A self args N/A redirect_uri N/A data N/A redirect_uri response_type client_id N/A session redirect_uri code N/A self client_id N/A N/A self args N/A N/A N/A N/A data update N/A self args N/A auth_request_url N/A %s?%s N/A N/A self auth_url N/A N/A urllib urlencode data N/A N/A HTTP 307 N/A REDIRECT_MSG auth_request_url Location auth_request_url N/A N/A N/A session code N/A N/A request vars code N/A N/A N/A self accessToken N/A next N/A get_user N/A N/A self N/A N/A N/A  Returns the user using the Graph API.  N/A token N/A N/A self accessToken N/A N/A token N/A N/A None N/A session N/A current session N/A user None N/A N/A N/A user N/A N/A self call_api token N/A N/A N/A Exception N/A e N/A N/A N/A session token None N/A user_dict None N/A user N/A N/A auth N/A current auth N/A table N/A N/A auth settings table_user N/A query N/A N/A table email N/A user N/A email N/A existent N/A N/A N/A N/A N/A N/A current db query select N/A table id N/A table password limitby N/A 0 1 first N/A existent N/A N/A user_dict N/A googleid email password N/A user N/A id N/A user N/A email N/A existent password N/A N/A N/A N/A auth s3_send_welcome_email user N/A names N/A N/A N/A N/A user get name split N/A first N/A N/A N/A len names 0 N/A names N/A 0 N/A last N/A N/A N/A len names 1 N/A names N/A -1 N/A user_dict N/A first_name last_name googleid nickname email website photo_source googlepicture registration_type N/A N/A user get given_name first N/A N/A user get family_name last N/A user N/A id N/A %(first_name)s-%(last_name)s-%(id)s N/A first_name last_name id N/A N/A first lower N/A N/A last lower N/A N/A user N/A id N/A 5 N/A user N/A email N/A N/A user get link N/A N/A N/A user get picture None 6 2 N/A N/A user get picture 3 N/A user_dict N/A call_api N/A N/A cls token N/A N/A N/A 
            Get the user info from the API

            @param token: the current access token
            @return: user info (dict)
         N/A api_response N/A N/A urllib urlopen N/A %s?access_token=%s N/A N/A cls API_URL token N/A user N/A N/A json loads N/A N/A api_response read N/A N/A user N/A N/A user None N/A N/A N/A current session token None N/A user N/A classmethod N/A HumanitarianIDAccount N/A OAuthAccount N/A N/A 
        OAuth implementation for Humanitarian.ID
        https://docs.google.com/document/d/1-FGDOo2BkhuclxqHcBjCprywZKE_wA6IFTbrs8W26i0
     N/A AUTH_URL https://auth.humanitarian.id/oauth/authorize N/A TOKEN_URL https://auth.humanitarian.id/oauth/access_token N/A API_URL https://auth.humanitarian.id/account.json __init__ N/A N/A self channel N/A N/A N/A 
            Constructor

            @param channel: dict with Humanitarian.ID API credentials:
                            {id=clientID, secret=clientSecret}
         N/A request N/A current request N/A settings N/A current deployment_settings N/A scope profile N/A redirect_uri N/A %s/%s/default/humanitarian_id/login N/A N/A N/A settings get_base_public_url N/A request application N/A N/A N/A OAuthAccount __init__ self client_id N/A channel N/A id client_secret N/A channel N/A secret auth_url N/A self AUTH_URL token_url N/A self TOKEN_URL scope scope response_type code redirect_uri redirect_uri state humanitarian_id N/A N/A self graph None N/A __build_url_opener N/A N/A self uri N/A N/A N/A 
            Build the url opener for managing HTTP Basic Authentication
         N/A auth_handler N/A N/A urllib2 HTTPBasicAuthHandler N/A N/A N/A auth_handler add_password None uri N/A self client_id N/A self client_secret N/A opener N/A N/A urllib2 build_opener auth_handler N/A opener N/A accessToken N/A N/A self N/A N/A N/A 
            Return the access token generated by the authenticating server.

            If token is already in the session that one will be used.
            Otherwise the token is fetched from the auth server.
         N/A session N/A current session N/A token N/A session token N/A N/A token N/A expires token N/A N/A expires N/A token N/A expires N/A N/A N/A expires 0 N/A expires N/A N/A time time N/A N/A N/A token N/A access_token N/A code N/A session code N/A code N/A N/A data N/A client_id client_secret redirect_uri code grant_type scope N/A self client_id N/A self client_secret N/A N/A self args N/A redirect_uri code authorization_code N/A N/A self args N/A scope N/A open_url None N/A opener N/A N/A self __build_url_opener N/A self token_url N/A N/A N/A N/A N/A open_url N/A N/A opener open N/A self token_url N/A N/A urllib urlencode data N/A N/A N/A N/A urllib2 HTTPError N/A e N/A N/A N/A Exception N/A N/A e read N/A N/A N/A session code N/A open_url N/A N/A N/A N/A token N/A N/A json loads N/A N/A open_url read N/A N/A token N/A expires N/A N/A int N/A token N/A expires_in N/A N/A time time N/A N/A N/A N/A opener close N/A N/A session token token N/A N/A token N/A access_token N/A N/A session token None N/A None N/A login_url N/A N/A self next N/A / N/A N/A  Overriding to produce a different redirect_uri  N/A N/A N/A N/A self accessToken N/A N/A request N/A current request N/A session N/A current session N/A N/A N/A N/A request vars code N/A N/A N/A session redirect_uri N/A N/A self args N/A redirect_uri N/A data N/A redirect_uri response_type client_id N/A session redirect_uri code N/A self client_id N/A N/A self args N/A N/A N/A N/A data update N/A self args N/A auth_request_url N/A %s?%s N/A N/A self auth_url N/A N/A urllib urlencode data N/A N/A HTTP 307 N/A REDIRECT_MSG auth_request_url Location auth_request_url N/A N/A N/A session code N/A N/A request vars code N/A N/A N/A self accessToken N/A next N/A get_user N/A N/A self N/A N/A N/A  Returns the user using the Graph API.  N/A token N/A N/A self accessToken N/A N/A token N/A N/A None N/A session N/A current session N/A user None N/A N/A N/A user N/A N/A self call_api token N/A N/A N/A Exception N/A e N/A N/A N/A session token None N/A user_dict None N/A user N/A N/A auth N/A current auth N/A table N/A N/A auth settings table_user N/A query N/A N/A table email N/A user N/A email N/A existent N/A N/A N/A N/A N/A N/A current db query select N/A table id N/A table password limitby N/A 0 1 first N/A existent N/A N/A user_dict N/A humanitarian_id email password N/A user N/A user_id N/A user N/A email N/A existent password N/A N/A N/A N/A auth s3_send_welcome_email user N/A user_dict N/A first_name last_name humanitarian_id email registration_type N/A N/A user get name_given N/A N/A user get name_family N/A user N/A user_id N/A user N/A email 3 N/A user_dict N/A call_api N/A N/A cls token N/A N/A N/A 
            Get the user info from the API

            @param token: the current access token
            @return: user info (dict)
         N/A api_response N/A N/A urllib urlopen N/A %s?access_token=%s N/A N/A cls API_URL token N/A user N/A N/A json loads N/A N/A api_response read N/A N/A user N/A N/A user None N/A N/A N/A current session token None N/A user N/A classmethod N/A