(self, technicType, data)
Adds information about the technic used to extract data from the db
Adds information about the technic used to extract data from the db
Adds information about the technic used to extract data from the db
def technic(self, technicType, data):
        '''
        Adds information about the technic used to extract data from the db
        '''
        technicElem = self.__doc.createElement(TECHNIC_ELEM_NAME)
        technicElem.setAttributeNode(self._createAttribute(TYPE_ATTR, technicType))
        textNode = self._createTextNode(data)
        technicElem.appendChild(textNode)
        technicsElem = self._getRootChild(TECHNICS_ELEM_NAME)
        if not(technicsElem):
            technicsElem = self.__doc.createElement(TECHNICS_ELEM_NAME)
            self._addToRoot(technicsElem)
        technicsElem.appendChild(technicElem)
def technic ( self , technicType , data ) : technicElem = self . __doc . createElement ( TECHNIC_ELEM_NAME ) technicElem . setAttributeNode ( self . _createAttribute ( TYPE_ATTR , technicType ) ) textNode = self . _createTextNode ( data ) technicElem . appendChild ( textNode ) technicsElem = self . _getRootChild ( TECHNICS_ELEM_NAME ) if not ( technicsElem ) : technicsElem = self . __doc . createElement ( TECHNICS_ELEM_NAME ) self . _addToRoot ( technicsElem ) technicsElem . appendChild ( technicElem )