'Get the list of IDs for the selected items from the "mode"
and "selected" request variables
@param upload_id: the upload_id
@param vars: the request variables'

def _process_item_list(self, upload_id, vars):

    items = None
    if ('mode' in vars):
        mode = vars['mode']
        if ('selected' in vars):
            selected = vars['selected']
        else:
            selected = []
        if (mode == 'Inclusive'):
            items = selected
        elif (mode == 'Exclusive'):
            all_items = self._get_all_items(upload_id, as_string=True)
            items = [i for i in all_items if (i not in selected)]
    return items
