From fc21c567941ed76cc92a00aba5cae36c290e44b3 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Sun, 25 Oct 2009 17:11:21 +0100 Subject: [PATCH] Editorial change --- src/xmldsig/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/xmldsig/__init__.py b/src/xmldsig/__init__.py index cc206fa..fa31265 100644 --- a/src/xmldsig/__init__.py +++ b/src/xmldsig/__init__.py @@ -445,7 +445,7 @@ class RetrievalMethod(DsBase): c_attributes['Type'] = 'type' c_children['{%s}Transforms' % NAMESPACE] = ('transforms', [Transforms]) - def __init__(self, transforms=None, uri=None, typ=None, text=None, + def __init__(self, transforms=None, uri=None, type=None, text=None, extension_elements=None, extension_attributes=None): """Constructor for RetrievalMethod @@ -454,13 +454,14 @@ class RetrievalMethod(DsBase): :param typ: Type attribute :param text: The text data in the this element :param extension_elements: A list of ExtensionElement instances - :param extension_attributes: A dictionary of attribute value string pairs + :param extension_attributes: A dictionary of attribute value string + pairs """ DsBase.__init__(self, text, extension_elements, extension_attributes) - self.transforms = transforms or [] self.uri = uri - self.type = typ + self.type = type + self.transforms = transforms or [] def retrieval_method_from_string(xml_string): """ Create RetrievalMethod instance from an XML string """