From 4a6d2d0502b12edf779b99b96f79ca6eac952846 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 20 Sep 2011 17:42:28 +0200 Subject: [PATCH] do not raise an exception if a web site has no subject. --- .../portal_skins/erp5_km_theme/template_erp5_km_minimal.xml | 2 +- bt5/erp5_km/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/template_erp5_km_minimal.xml b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/template_erp5_km_minimal.xml index 396265b5bb..71ec8e5aaf 100644 --- a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/template_erp5_km_minimal.xml +++ b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/template_erp5_km_minimal.xml @@ -105,7 +105,7 @@ is_right_area_empty python:right_list == 0 or len(right_list) == 0;\n is_front_layout python: layout_form is not None and\n layout_form.id == \'erp5_km_minimal_front_layout\';\n - subject_list python:here.getLayoutProperty(\'subject_list\');\n + subject_list python:here.getLayoutProperty(\'subject_list\') or [];\n global header_title python:\'%s | %s\' % (here.getTranslatedTitleOrId(), website.getTranslatedTitleOrId());\n global css_list_template python:[\n \'%s/erp5_listbox.css\' % portal_path,\n diff --git a/bt5/erp5_km/bt/revision b/bt5/erp5_km/bt/revision index 39e533f9d1..d9bc155cca 100644 --- a/bt5/erp5_km/bt/revision +++ b/bt5/erp5_km/bt/revision @@ -1 +1 @@ -1811 \ No newline at end of file +1812 \ No newline at end of file -- 2.30.9