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

@@ -99,4 +99,9 @@ def get_parent_item_groups(item_group_name):
return webnotes.conn.sql("""select name, page_name from `tabItem Group`
where lft <= %s and rgt >= %s
and ifnull(show_in_website,0)=1
order by lft asc""", (item_group.lft, item_group.rgt), as_dict=True)
order by lft asc""", (item_group.lft, item_group.rgt), as_dict=True)
def invalidate_cache_for(item_group):
from website.utils import delete_page_cache
for i in get_parent_item_groups(item_group):
delete_page_cache(i.page_name)