'This method allows callers to change CourseTab members with the d[key]=value syntax as is done with
Python dictionary objects.  For example: course_tab[\'name\'] = new_name
Note: the \'type\' member can be \'get\', but not \'set\'.'

def __setitem__(self, key, value):

    if (hasattr(self, key) and (key not in READ_ONLY_COURSE_TAB_ATTRIBUTES)):
        setattr(self, key, value)
    else:
        raise KeyError('Key    {0}    cannot    be    set    in    tab    {1}'.format(key, self.to_json()))
