'"Get the relevant section in the template.'

def __getitem__(self, section):

    if (section not in self.SECTIONS):
        section = HOTemplate20130523._translate(section, self._CFN_TO_HOT_SECTIONS, _('"%s"    is    not    a    valid    template    section'))
    if (section not in self.SECTIONS):
        raise KeyError((_('"%s"    is    not    a    valid    template    section') % section))
    if (section in self.SECTIONS_NO_DIRECT_ACCESS):
        raise KeyError((_('Section    %s    can    not    be    accessed    directly.') % section))
    if (section == self.MAPPINGS):
        return {}
    if (section == self.DESCRIPTION):
        default = 'No    description'
    else:
        default = {}
    the_section = (self.t.get(section) or default)
    if (section == self.RESOURCES):
        return self._translate_resources(the_section)
    if (section == self.OUTPUTS):
        self.validate_section(self.OUTPUTS, self.OUTPUT_VALUE, the_section, self.OUTPUT_KEYS)
    return the_section
