parameters: (self, email, password)
docstring: Uses ClientLogin to authenticate the user, returning an auth token.
  
      Args:
        email:    The user's email address
        password: The user's password
  
      Raises:
        ClientLoginError: If there was an error authenticating with ClientLogin.
        HTTPError: If there was some other form of HTTP error.
  
      Returns:
        The authentication token returned by ClientLogin.
docstring_summary: Uses ClientLogin to authenticate the user, returning an auth token.
docstring_tokens: Uses ClientLogin to authenticate the user returning an auth token .
function: def _GetAuthToken(self, email, password):
      """Uses ClientLogin to authenticate the user, returning an auth token.
  
      Args:
        email:    The user's email address
        password: The user's password
  
      Raises:
        ClientLoginError: If there was an error authenticating with ClientLogin.
        HTTPError: If there was some other form of HTTP error.
  
      Returns:
        The authentication token returned by ClientLogin.
      """
      account_type = self.account_type
      if self.host.endswith(".google.com"):
        # Needed for use inside Google.
        account_type = "HOSTED"
      req = self._CreateRequest(
          url="https://www.google.com/accounts/ClientLogin",
          data=urllib.urlencode({
              "Email": email,
              "Passwd": password,
              "service": "ah",
              "source": "rietveld-codereview-upload",
              "accountType": account_type,
          }),
      )
      try:
        response = self.opener.open(req)
        response_body = response.read()
        response_dict = dict(x.split("=")
                             for x in response_body.split("\n") if x)
        return response_dict["Auth"]
      except urllib2.HTTPError, e:
        if e.code == 403:
          body = e.read()
          response_dict = dict(x.split("=", 1) for x in body.split("\n") if x)
          raise ClientLoginError(req.get_full_url(), e.code, e.msg,
                                 e.headers, response_dict)
        else:
          raise
function_tokens: def _GetAuthToken ( self , email , password ) : account_type = self . account_type if self . host . endswith ( ".google.com" ) : # Needed for use inside Google. account_type = "HOSTED" req = self . _CreateRequest ( url = "https://www.google.com/accounts/ClientLogin" , data = urllib . urlencode ( { "Email" : email , "Passwd" : password , "service" : "ah" , "source" : "rietveld-codereview-upload" , "accountType" : account_type , } ) , ) try : response = self . opener . open ( req ) response_body = response . read ( ) response_dict = dict ( x . split ( "=" ) for x in response_body . split ( "\n" ) if x ) return response_dict [ "Auth" ] except urllib2 . HTTPError , e : if e . code == 403 : body = e . read ( ) response_dict = dict ( x . split ( "=" , 1 ) for x in body . split ( "\n" ) if x ) raise ClientLoginError ( req . get_full_url ( ) , e . code , e . msg , e . headers , response_dict ) else : raise