def add_view_menu(self, name):
view_menu = self.find_view_menu(name)<EOL>if view_menu is None:<EOL><INDENT>try:<EOL><INDENT>view_menu = self.viewmenu_model()<EOL>view_menu.name = name<EOL>self.get_session.add(view_menu)<EOL>self.get_session.commit()<EOL>return view_menu<EOL><DEDENT>except Exception as e:<EOL><INDENT>log.error(c.LOGMSG_ERR_SEC_ADD_VIEWMENU.format(str(e)))<EOL>self.get_session.rollback()<EOL><DEDENT><DEDENT>return view_menu<EOL>
Adds a view or menu to the backend, model view_menu
param name:
    name of the view menu to add