diff options
Diffstat (limited to 'repoze/bfg/zcml.py')
| -rw-r--r-- | repoze/bfg/zcml.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index bca28d47e..ff2549447 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -89,7 +89,12 @@ def view( ): if not view: - raise ConfigurationError('"view" attribute was not specified') + if template: + def view(context, request): + return {} + else: + raise ConfigurationError('"view" attribute was not specified and ' + 'no template specified') sm = getSiteManager() |
