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

Module xmlwriter

source code

xml serializer and component comparison


Version: $Rev: 6964 $

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
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