'Encode a response as a URL for the user agent to GET.
You will generally use this URL with a HTTP redirect.
@returns: A URL to direct the user agent back to.
@returntype: str'

def encodeToURL(self):

    return self.fields.toURL(self.request.return_to)
