Package ndg :: Package xacml :: Package utils :: Module etree
[hide private]

Module etree

source code

ElementTree Utilities package for NDG Security

NERC DataGrid


Date: 02/04/09

Author: P J Kershaw

Contact: Philip.Kershaw@stfc.ac.uk

Copyright:  

License: BSD - see LICENSE file in top-level directory

Classes [hide private]
  _PrettyPrint
Class for lightweight pretty printing of ElementTree elements
Functions [hide private]
basestring
canonicalize(elem, **kw)
ElementTree based Canonicalization - See ElementC14N for keyword info.
source code
 
prettyPrint(*arg, **kw)
Lightweight pretty printing of ElementTree elements.
source code
Variables [hide private]
  __revision__ = '$Id: etree.py 8010 2012-01-30 16:24:06Z rwilki...
  c14nWarning = 'Custom ElementC14N package is not installed, ca...
  elementC14nNotInstalled = True
  __package__ = 'ndg.xacml.utils'
  __warningregistry__ = {('Custom ElementC14N package is not ins...
Function Details [hide private]

canonicalize(elem, **kw)

source code 

ElementTree based Canonicalization - See ElementC14N for keyword info. Also useful for pretty printing XML

Parameters:
  • elem (ElementTree.Element) - element to be canonicalized
Returns: basestring
canonicalised output

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 8010 2012-01-30 16:24:06Z rwilkinson $'

c14nWarning

Value:
'Custom ElementC14N package is not installed, canonicalize function is\
 disabled'

__warningregistry__

Value:
{('Custom ElementC14N package is not installed, canonicalize function \
is disabled',
  <type 'exceptions.UserWarning'>,
  27): True}