def __init__(self, channel):

        request = current.request
        settings = current.deployment_settings

        scope = "https://www.googleapis.com/auth/userinfo.email " \
                "https://www.googleapis.com/auth/userinfo.profile"
        user_agent = "google-api-client-python-plus-cmdline/1.0"

        # Set the redirect URI to the default/google controller
        redirect_uri = "%s/%s/default/google/login" % \
                       (settings.get_base_public_url(), request.application)

        OAuthAccount.__init__(self,
                              client_id = channel["id"],
                              client_secret = channel["secret"],
                              auth_url = self.AUTH_URL,
                              token_url = self.TOKEN_URL,
                              scope = scope,
                              user_agent = user_agent,
                              xoauth_displayname = settings.get_system_name(),
                              response_type = "code",
                              redirect_uri = redirect_uri,
                              approval_prompt = "force",
                              state = "google"
                              )
        self.graph = None

    # -------------------------------------------------------------------------
Constructor
dataset/ETHPy150Open sahana/eden/modules/s3oauth.py/GooglePlusAccount.__init__