Package ndg :: Package saml :: Package xml :: Module etree
[hide private]

Module etree

source code

Implementation of SAML 2.0 for NDG Security - ElementTree module for ElementTree representation of SAML objects

NERC DataGrid Project

This implementation is adapted from the Java OpenSAML implementation. The copyright and licence information are included here:

Copyright [2005] [University Corporation for Advanced Internet Development, Inc.]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Date: 23/07/09

Author: P J Kershaw

Contact: Philip.Kershaw@stfc.ac.uk

Copyright: (C) 2009 Science and Technology Facilities Council

License: http://www.apache.org/licenses/LICENSE-2.0

Classes [hide private]
  QName
Extend ElementTree implementation for improved attribute access support
  _PrettyPrint
Class for lightweight pretty printing of ElementTree elements
  ConditionsElementTree
ElementTree based XML representation of Conditions class
  AssertionElementTree
ElementTree based XML representation of Assertion class
  AttributeStatementElementTree
ElementTree XML representation of AttributeStatement
  AuthzDecisionStatementElementTree
ElementTree XML representation of AuthzDecisionStatement
  AttributeElementTree
ElementTree XML representation of SAML Attribute object.
  AttributeValueElementTreeBase
Base class ElementTree XML representation of SAML Attribute Value
  XSStringAttributeValueElementTree
ElementTree XML representation of SAML String type Attribute Value
  AttributeValueElementTreeFactory
Class factory for AttributeValue ElementTree classes.
  IssuerElementTree
Represent a SAML Issuer element in XML using ElementTree
  NameIdElementTree
Represent a SAML Name Identifier in XML using ElementTree
  SubjectElementTree
Represent a SAML Subject in XML using ElementTree
  StatusCodeElementTree
Represent a SAML Status Code in XML using ElementTree
  StatusMessageElementTree
Represent a SAML Status Message in XML using ElementTree
  StatusElementTree
Represent a SAML Status in XML using ElementTree
  AttributeQueryElementTree
Represent a SAML Attribute Query in XML using ElementTree
  ResponseElementTree
Represent a SAML Response in XML using ElementTree
  ActionElementTree
Represent a SAML authorization action in XML using ElementTree
  AuthzDecisionQueryElementTree
Represent a SAML Attribute Query in XML using ElementTree
Functions [hide private]
 
makeEtreeElement(tag, ns_prefix, ns_uri, attrib={}, **extra)
Makes an ElementTree element handling namespaces in the way appropriate for the ElementTree implementation in use.
source code
 
prettyPrint(*arg, **kw)
Lightweight pretty printing of ElementTree elements.
source code
 
_getElementTreeImplementationForQName(qname) source code
 
setElementTreeImplementationForQName(qname, impl) source code
Variables [hide private]
  __revision__ = '$Id: etree.py 8009 2012-01-30 16:19:43Z rwilki...
  log = logging.getLogger(__name__)
  _extensionElementTreeMap = {}
  __package__ = 'ndg.saml.xml'
Function Details [hide private]

prettyPrint(*arg, **kw)

source code 

Lightweight pretty printing of ElementTree elements. This function wraps the PrettyPrint class

Parameters:
  • arg (tuple) - arguments to pretty print function
  • kw (dict) - keyword arguments to pretty print function

Variables Details [hide private]

__revision__

Value:
'$Id: etree.py 8009 2012-01-30 16:19:43Z rwilkinson $'