def add_home_page(bootinfo, doclist): """load home page""" if webnotes.session.user=="Guest": return home_page = webnotes.get_application_home_page(webnotes.session.user) try: page_doclist = webnotes.widgets.page.get(home_page) except webnotes.PermissionError, e: page_doclist = webnotes.widgets.page.get('Login Page')
def add_home_page(bootinfo, doclist): """load home page""" if webnotes.session.user == "Guest": return home_page = webnotes.get_application_home_page(webnotes.session.user) try: page_doclist = webnotes.widgets.page.get(home_page) except (webnotes.DoesNotExistError, webnotes.PermissionError), e: page_doclist = webnotes.widgets.page.get('desktop')
def add_home_page(bootinfo, doclist): """load home page""" if webnotes.session.user=="Guest": return home_page = webnotes.get_application_home_page(webnotes.session.user) try: page_doclist = webnotes.widgets.page.get(home_page) except (webnotes.DoesNotExistError, webnotes.PermissionError), e: page_doclist = webnotes.widgets.page.get('desktop')