Пример #1
0
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')
Пример #2
0
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')
Пример #3
0
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')
Пример #4
0
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')