def __init__(self,<EOL>html_id=None,<EOL>name=None,<EOL>content=None,<EOL>template=None,<EOL>classes=None,<EOL>**kwargs):
if html_id is not None:<EOL><INDENT>try:<EOL><INDENT>self.html_id = html_id<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._html_id = html_id<EOL><DEDENT><DEDENT>if name is not None:<EOL><INDENT>try:<EOL><INDENT>self.name = name<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._name = name<EOL><DEDENT><DEDENT>if content is not None:<EOL><INDENT>try:<EOL><INDENT>self.content = content<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._content = content<EOL><DEDENT><DEDENT>if template is not None:<EOL><INDENT>try:<EOL><INDENT>self.template = template<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._template = template<EOL><DEDENT><DEDENT>if classes is not None:<EOL><INDENT>try:<EOL><INDENT>self.classes = classes<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._classes = classes<EOL><DEDENT><DEDENT>if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>raise AttributeError('<STR_LIT>')<EOL><DEDENT>for kw, arg in kwargs.items():<EOL><INDENT>setattr(self, kw, arg)<EOL><DEDENT>
Init method.

Args:
    html_id (str): an ID to set on the HTML item.
    name (str): the name of the item, displayed in HTML.
    content (): suitable content according to chosen display.
    template (str): the template responsible for display.
    classes (str): additional classes to pass to the HTML item.