root: add an is_index variable to index pages

This commit is contained in:
Frédéric Péters 2013-05-20 11:56:09 +02:00
parent 2f8eb3a08c
commit 8c6e929c49
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,10 @@ Category.get_limit = category_get_limit
class FormsRootDirectory(wcs.forms.root.RootDirectory):
def _q_index(self, *args):
get_response().filter['is_index'] = True
return wcs.forms.root.RootDirectory._q_index(self, *args)
def user_forms [html] (self, user_forms):
base_url = get_publisher().get_root_url()
@ -841,6 +845,7 @@ class AlternateRootDirectory(OldRootDirectory):
return redirect('%sservices' % root_url)
template.html_top()
get_response().filter['is_index'] = True
t = TextsDirectory.get_html_text('aq-home-page')
if t: