(self, dbTables)
Adds information of the existing db tables to the xml
Adds information of the existing db tables to the xml
Adds information of the existing db tables to the xml
def dbTables(self, dbTables):
        '''
        Adds information of the existing db tables to the xml
        '''
        if not isinstance(dbTables, dict):
            self.string(TABLES_ELEM_NAME, dbTables)
            return

        dbTablesElem = self.__doc.createElement(DB_TABLES_ELEM_NAME)

        for db, tables in dbTables.items():
            tables.sort(key=lambda x: x.lower())
            dbElem = self.__doc.createElement(DATABASE_ELEM_NAME)
            dbElem.setAttributeNode(self._createAttribute(NAME_ATTR, db))
            dbTablesElem.appendChild(dbElem)
            for table in tables:
                tableElem = self.__doc.createElement(DB_TABLE_ELEM_NAME)
                tableElem.appendChild(self._createTextNode(table))
                dbElem.appendChild(tableElem)
        self._addToRoot(dbTablesElem)
def dbTables ( self , dbTables ) : if not isinstance ( dbTables , dict ) : self . string ( TABLES_ELEM_NAME , dbTables ) return dbTablesElem = self . __doc . createElement ( DB_TABLES_ELEM_NAME ) for db , tables in dbTables . items ( ) : tables . sort ( key = lambda x : x . lower ( ) ) dbElem = self . __doc . createElement ( DATABASE_ELEM_NAME ) dbElem . setAttributeNode ( self . _createAttribute ( NAME_ATTR , db ) ) dbTablesElem . appendChild ( dbElem ) for table in tables : tableElem = self . __doc . createElement ( DB_TABLE_ELEM_NAME ) tableElem . appendChild ( self . _createTextNode ( table ) ) dbElem . appendChild ( tableElem ) self . _addToRoot ( dbTablesElem )