From 7ca83e1b07b0291baececfd8863a8e04b7677ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 30 Apr 2011 15:27:58 +0200 Subject: [PATCH] Make tabs be backoffice tabs for custom texts directory --- extra/modules/boconfig.ptl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extra/modules/boconfig.ptl b/extra/modules/boconfig.ptl index 1c48f71..51ffa3e 100644 --- a/extra/modules/boconfig.ptl +++ b/extra/modules/boconfig.ptl @@ -41,13 +41,18 @@ def get_logo_url(): return '%spages/data/logo.%s' % (get_publisher().get_root_url(), f) return None + +class TextsDirectory(qommon.admin.texts.TextsDirectory): + def html_top(self, title): + html_top('config', title) + class ConfigDirectory(Directory): _q_exports = ['', 'password', 'contact', 'sitetitle', 'homepage', 'texts', 'appearance', 'logo'] def _q_traverse (self, path): get_response().breadcrumb.append( ('config/', _('Configuration')) ) - self.texts = qommon.admin.texts.TextsDirectory() + self.texts = TextsDirectory() self.texts.texts_dict = self.texts.texts_dict.copy() for k in self.texts.texts_dict.keys(): if k not in ('asec-recorded-vote',):