website: home_page fix

This commit is contained in:
Rushabh Mehta 2012-12-07 12:54:08 +05:30
parent a494b88ad8
commit b5c3970145
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ def make():
if not webnotes.conn:
webnotes.connect()
home_page = website.utils.get_home_page('Guest')
home_page = website.utils.get_home_page()
fname = 'js/wn-web.js'
if os.path.basename(os.path.abspath('.'))!='public':

View File

@ -60,11 +60,11 @@ def get_html(page_name):
# load from cache, if auto cache clear is falsy
if not (hasattr(conf, 'auto_cache_clear') and conf.auto_cache_clear or 0):
html = webnotes.cache().get_value("page:" + page_name)
comments += "\nload status: fresh"
comments += "\nload status: cache"
if not html:
html = load_into_cache(page_name)
comments += "\nload status: cache"
comments += "\nload status: fresh"
# insert comments
html += """\n<!-- %s -->""" % webnotes.utils.cstr(comments)