Make tabs be backoffice tabs for custom texts directory
This commit is contained in:
parent
eac373ea75
commit
7ca83e1b07
|
@ -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',):
|
||||
|
|
Reference in New Issue