Handle empty title in meta header
authorThierry Florac <thierry.florac@onf.fr>
Tue, 05 Feb 2019 14:42:34 +0100
changeset 114 30cf1a8438a6
parent 113 6de5949fbaf9
child 115 66800da6ed48
Handle empty title in meta header
src/pyams_zmi/metas.py
--- a/src/pyams_zmi/metas.py	Fri Feb 01 18:37:05 2019 +0100
+++ b/src/pyams_zmi/metas.py	Tue Feb 05 14:42:34 2019 +0100
@@ -36,7 +36,7 @@
 
     def get_metas(self):
         config = IBackOfficeConfiguration(self.request.root)
-        yield HTMLTagMeta('title', config.title,
+        yield HTMLTagMeta('title', config.title or '----',
                           **{'data-ams-title-prefix': config.get_title_prefix(self.request)})