def _getValuesFromMd(self, columnName): label = md.str2Label(columnName) return [self._table.getValue(label, objId) for objId in self._table]
def _loadMd(self, fileName, tableName): label = md.str2Label(self._orderColumn) tableMd = md.MetaData('%s@%s' % (tableName, fileName)) tableMd.sort(label)#FIXME: use order direction #TODO: sort metadata by self._orderColumn return tableMd