From 06c6ff886f5a08f6c2434c665824515aebdc1801 Mon Sep 17 00:00:00 2001 From: klm Date: Wed, 1 Jul 1998 15:40:49 +0000 Subject: .InitTempVars(): Use the default templates for anonymous lists. (Previously, mailman would crash when InitTempVars() was trying to construct the _template_dir setting by concatenating the TEMPLATE_DIR with the None setting for self._internal_name.) --- Mailman/HTMLFormatter.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Mailman/HTMLFormatter.py') diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index d234c0b1b..c47c6c998 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -29,8 +29,11 @@ from htmlformat import * class HTMLFormatter: def InitTempVars(self): - self._template_dir = os.path.join(mm_cfg.TEMPLATE_DIR, - self._internal_name) + if self._internal_name: + self._template_dir = os.path.join(mm_cfg.TEMPLATE_DIR, + self._internal_name) + else: + self._template_dir = mm_cfg.TEMPLATE_DIR def GetMailmanFooter(self): owners_html = Container() -- cgit v1.2.3-70-g09d2