def processAppendElementNode(archivableObjects, elementNode, parentNode):
 if (elementNode == None):
  return
 object = elementNode.getFirstChildByLocalName('object')
 if ('bf:type' not in object.attributes):
  return
 shapeType = object.attributes['bf:type']
 if (shapeType not in globalCarvableClassObjectTable):
  return
 carvableClassObject = globalCarvableClassObjectTable[shapeType]
 archivableObject = getCarvableObject(elementNode, carvableClassObject, object)
 archivableObject.elementNode.attributes['visible'] = elementNode.attributes['visible']
 archivableObject.setToArtOfIllusionDictionary()
 archivableObject.elementNode.parentNode = parentNode
 archivableObjects.append(archivableObject)

def processAppendElementNode ( archivableObjects , elementNode , parentNode ) : if ( elementNode == None ) : return object = elementNode . getFirstChildByLocalName ( 'object' ) if ( 'bf:type' not in object . attributes ) : return shapeType = object . attributes [ 'bf:type' ] if ( shapeType not in globalCarvableClassObjectTable ) : return carvableClassObject = globalCarvableClassObjectTable [ shapeType ] archivableObject = getCarvableObject ( elementNode , carvableClassObject , object ) archivableObject . elementNode . attributes [ 'visible' ] = elementNode . attributes [ 'visible' ] archivableObject . setToArtOfIllusionDictionary ( ) archivableObject . elementNode . parentNode = parentNode archivableObjects . append ( archivableObject )
add the object info if it is carvable .