[website] [cleanup] separated website generation in framework and erpnext

This commit is contained in:
Rushabh Mehta
2013-04-03 16:34:23 +05:30
parent 27c4079ff9
commit 3023a8fa9b
32 changed files with 114 additions and 369 deletions

View File

@@ -74,7 +74,7 @@ def add_comment(args=None):
webnotes.webutils.clear_cache(args.get('page_name'))
comment['comment_date'] = webnotes.utils.global_date_format(comment['creation'])
template_args = { 'comment_list': [comment], 'template': 'html/comment.html' }
template_args = { 'comment_list': [comment], 'template': 'app/website/templates/html/comment.html' }
# get html of comment row
comment_html = webnotes.webutils.build_html(template_args)

View File

@@ -82,7 +82,7 @@ def get_group_item_count(item_group):
def get_item_for_list_in_html(r):
scrub_item_for_list(r)
r.template = "html/product_in_list.html"
r.template = "app/website/templates/html/product_in_list.html"
return build_html(r)
def scrub_item_for_list(r):