thirdparty/google_appengine/google/appengine/api/user_service_stub.py
changeset 2864 2e0b0af889be
parent 686 df109be0567c
equal deleted inserted replaced
2862:27971a13089f 2864:2e0b0af889be
    63     Args:
    63     Args:
    64       request: the URL to redirect to after login; a base.StringProto
    64       request: the URL to redirect to after login; a base.StringProto
    65       response: the login URL; a base.StringProto
    65       response: the login URL; a base.StringProto
    66     """
    66     """
    67     self.__num_requests += 1
    67     self.__num_requests += 1
    68     response.set_value(
    68     response.set_login_url(
    69         self._login_url %
    69         self._login_url %
    70         urllib.quote(self._AddHostToContinueURL(request.value())))
    70         urllib.quote(self._AddHostToContinueURL(request.destination_url())))
    71 
    71 
    72   def _Dynamic_CreateLogoutURL(self, request, response):
    72   def _Dynamic_CreateLogoutURL(self, request, response):
    73     """Trivial implementation of UserService.CreateLogoutURL().
    73     """Trivial implementation of UserService.CreateLogoutURL().
    74 
    74 
    75     Args:
    75     Args:
    76       request: the URL to redirect to after logout; a base.StringProto
    76       request: the URL to redirect to after logout; a base.StringProto
    77       response: the logout URL; a base.StringProto
    77       response: the logout URL; a base.StringProto
    78     """
    78     """
    79     self.__num_requests += 1
    79     self.__num_requests += 1
    80     response.set_value(
    80     response.set_logout_url(
    81         self._logout_url %
    81         self._logout_url %
    82         urllib.quote(self._AddHostToContinueURL(request.value())))
    82         urllib.quote(self._AddHostToContinueURL(request.destination_url())))
    83 
    83 
    84   def _AddHostToContinueURL(self, continue_url):
    84   def _AddHostToContinueURL(self, continue_url):
    85     """Adds the request host to the continue url if no host is specified.
    85     """Adds the request host to the continue url if no host is specified.
    86 
    86 
    87     Args:
    87     Args: