Fixed docstring errors

This commit is contained in:
Roland Hedberg
2014-03-13 20:06:06 +01:00
parent 0b9f5e5958
commit ce33d5f8fc
2 changed files with 11 additions and 15 deletions

View File

@@ -254,12 +254,6 @@ class Saml2Client(Base):
status["reason"], status["not_on_or_after"], status["reason"], status["not_on_or_after"],
status["sign"]) status["sign"])
# ========================================================================
# MUST use SOAP for
# AssertionIDRequest, SubjectQuery, AuthnQuery, AttributeQuery or
# AuthzDecisionQuery
# ========================================================================
def _use_soap(self, destination, query_type, **kwargs): def _use_soap(self, destination, query_type, **kwargs):
_create_func = getattr(self, "create_%s" % query_type) _create_func = getattr(self, "create_%s" % query_type)
_response_func = getattr(self, "parse_%s_response" % query_type) _response_func = getattr(self, "parse_%s_response" % query_type)
@@ -432,13 +426,14 @@ class Saml2Client(Base):
:param sign: Whether the response will be signed or not :param sign: Whether the response will be signed or not
:return: Keyword arguments which can be used to send the response :return: Keyword arguments which can be used to send the response
what's returned follow different patterns for different bindings. what's returned follow different patterns for different bindings.
If the binding is BINDIND_SOAP, what is returned looks like this: If the binding is BINDIND_SOAP, what is returned looks like this::
{
"data": <the SOAP enveloped response> {
"url": "", "data": <the SOAP enveloped response>
'headers': [('content-type', 'application/soap+xml')] "url": "",
'method': "POST 'headers': [('content-type', 'application/soap+xml')]
} 'method': "POST
}
""" """
logger.info("logout request: %s" % request) logger.info("logout request: %s" % request)

View File

@@ -113,8 +113,9 @@ def _localized_name(val, klass):
def do_organization_info(ava): def do_organization_info(ava):
""" decription of an organization in the configuration is """
a dictionary of keys and values, where the values might be tuples: Description of an organization in the configuration is
a dictionary of keys and values, where the values might be tuples::
"organization": { "organization": {
"name": ("AB Exempel", "se"), "name": ("AB Exempel", "se"),