def init_descriptors(self, sheet):
    self.descriptors = []
    id_table = []
    for i in range(DATA_STARTING_ROW, sheet.nrows):
        rowcount = (i + 1)
        col = sheet.row_values(i)
        desc = self.get_descriptor(col)
        if self.is_parent:
            id = desc[ID_COLUMN_NAME]
            if (not id):
                raise Exception((((('[' + self.name) + ']') + 'Descriptor id must have a value - row : ') + str((i + 1))))
                sys.exit()
            if (id in id_table):
                raise Exception((((('[' + self.name) + ']') + 'Descriptor id is duplicated - row : ') + str((i + 1))))
                sys.exit()
            id_table.append(id)
        self.descriptors.append(desc)
def init_descriptors(self, sheet):
    self.descriptors = []
    id_table = []
    for i in range(DATA_STARTING_ROW, sheet.nrows):
        rowcount = (i + 1)
        col = sheet.row_values(i)
        desc = self.get_descriptor(col)
        if self.is_parent:
            id = desc[ID_COLUMN_NAME]
            if (not id):
                raise Exception((((('[' + self.name) + ']') + 'Descriptor id must have a value - row : ') + str((i + 1))))
                sys.exit()
            if (id in id_table):
                raise Exception((((('[' + self.name) + ']') + 'Descriptor id is duplicated - row : ') + str((i + 1))))
                sys.exit()
            id_table.append(id)
        self.descriptors.append(desc)