added wesite slideshow and attributions on website

This commit is contained in:
Rushabh Mehta
2012-12-25 18:18:17 +05:30
parent f50c012808
commit 7edf899706
21 changed files with 383 additions and 96 deletions

View File

@@ -37,7 +37,10 @@ class DocType(DocTypeNestedSet):
page_name = "products"
update_page_name(self.doc, self.doc.name)
from website.helpers.product import invalidate_cache_for
invalidate_cache_for(self.doc.name)
def prepare_template_args(self):
from website.helpers.product import get_product_list_for_group, \
get_parent_item_groups, get_group_item_count
@@ -51,4 +54,4 @@ class DocType(DocTypeNestedSet):
self.doc.items = get_product_list_for_group(product_group = self.doc.name, limit=20)
self.parent_groups = get_parent_item_groups(self.doc.name)