Mercurial > libervia-web
diff src/server/pages.py @ 1059:d127a85b2fee
pages: don't log error anymore when empty page_meta.py are used
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Jan 2018 08:15:05 +0100 |
parents | 47c354ca66a3 |
children | f0f7b3324749 |
line wrap: on
line diff
--- a/src/server/pages.py Tue Jan 30 08:15:04 2018 +0100 +++ b/src/server/pages.py Tue Jan 30 08:15:05 2018 +0100 @@ -202,12 +202,8 @@ if access == C.PAGES_ACCESS_NONE: # none pages just return a 404, no further check is needed return - if template is None: - if self.redirect is None and not callable(render): - log.error(_(u"render must be implemented and callable if template is not set")) - else: - if render is not None: - log.error(_(u"render can't be used at the same time as template")) + if template is not None and render is not None: + log.error(_(u"render and template methods can't be used at the same time")) if parse_url is not None and not callable(parse_url): log.error(_(u"parse_url must be a callable"))