author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 21 May 2010 15:02:42 +0200 | |
changeset 5567 | bb97cd6ded2d |
parent 5566 | 379245fa7f48 |
child 5568 | 83acff1b50cc |
selectors.py | file | annotate | diff | comparison | revisions |
--- a/selectors.py Fri May 21 15:02:14 2010 +0200 +++ b/selectors.py Fri May 21 15:02:42 2010 +0200 @@ -490,6 +490,9 @@ def __init__(self, *regids): super(adaptable, self).__init__('adapters', *regids) + def __call__(self, cls, req, **kwargs): + kwargs.setdefault('accept_none', False) + return super(adaptable, self).__call__(cls, req, **kwargs) # rset selectors ##############################################################