'Based on the user selection in the combo, return a template instance or
None if there was any type of error.'

def _get_active_template_in_combo(self):

    model = self.combobox.get_model()
    active = self.combobox.get_active()
    if (active < 0):
        return None
    try:
        template = get_template_by_name(model[active][1])
    except:
        return None
    return template
