diff options
| author | Tres Seaver <tseaver@palladion.com> | 2011-05-10 05:01:09 -0700 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2011-05-10 05:01:09 -0700 |
| commit | 60e7ba931599db835968e5248d31bba6db08a447 (patch) | |
| tree | c330ea1fe8fe238044cf286b92ea6896ae2195e5 | |
| parent | 06d5ce3b7f54326b0bf7ca26c9e66e4c4dc005ff (diff) | |
| parent | 846b0c0168f95f205e9643dc63ff65cd07696758 (diff) | |
| download | pyramid-60e7ba931599db835968e5248d31bba6db08a447.tar.gz pyramid-60e7ba931599db835968e5248d31bba6db08a447.tar.bz2 pyramid-60e7ba931599db835968e5248d31bba6db08a447.zip | |
Merge pull request #187 from aodag/master
Instances if DefaultViewMapper provide IViewMapper.
The class itself provides IViewMapperFactory.
| -rw-r--r-- | pyramid/config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pyramid/config.py b/pyramid/config.py index 602a5b60f..9286136cf 100644 --- a/pyramid/config.py +++ b/pyramid/config.py @@ -18,6 +18,7 @@ from zope.interface import Interface from zope.interface import implementedBy from zope.interface.interfaces import IInterface from zope.interface import implements +from zope.interface import classProvides from pyramid.interfaces import IAuthenticationPolicy from pyramid.interfaces import IAuthorizationPolicy @@ -45,6 +46,7 @@ from pyramid.interfaces import ITranslationDirectories from pyramid.interfaces import ITraverser from pyramid.interfaces import IView from pyramid.interfaces import IViewClassifier +from pyramid.interfaces import IViewMapper from pyramid.interfaces import IViewMapperFactory from pyramid import renderers @@ -2937,7 +2939,8 @@ class ViewDeriver(object): return decorator(view) class DefaultViewMapper(object): - implements(IViewMapperFactory) + classProvides(IViewMapperFactory) + implements(IViewMapper) def __init__(self, **kw): self.attr = kw.get('attr') |
