def getCascadeFloatWithoutSelf(defaultFloat, elementNode, key):
 if (key in elementNode.attributes):
  value = elementNode.attributes[key]
  functionName = (('get' + key[0].upper()) + key[1:])
  if (functionName in value):
   if (elementNode.parentNode == None):
    return defaultFloat
   else:
    elementNode = elementNode.parentNode
 return elementNode.getCascadeFloat(defaultFloat, key)

def getCascadeFloatWithoutSelf ( defaultFloat , elementNode , key ) : if ( key in elementNode . attributes ) : value = elementNode . attributes [ key ] functionName = ( ( 'get' + key [ 0 ] . upper ( ) ) + key [ 1 : ] ) if ( functionName in value ) : if ( elementNode . parentNode == None ) : return defaultFloat else : elementNode = elementNode . parentNode return elementNode . getCascadeFloat ( defaultFloat , key )
get the cascade float .