Package flumotion :: Package common :: Module xmlwriter
[hide private]

Module xmlwriter

source code

xml serializer and component comparison


Version: $Rev$

Classes [hide private]
  XMLWriter
Functions [hide private]
 
cmpComponentType(aType, bType)
Compare two component types the way they should be written in an xml file.
source code
Variables [hide private]
  __package__ = 'flumotion.common'
Function Details [hide private]

cmpComponentType(aType, bType)

source code 

Compare two component types the way they should be written in an xml file. Suitable for using as cmp argument to list.sort() or sorted().

Parameters:
  • aType () - first component type
  • bType () - second component type
Returns:
-1, 0 or 1, see __builtin__.cmp