[Zope3-checkins] SVN: Zope3/trunk/ Deprecated `pluggableauth` package. Made sure that the tests do not raise

Florent Guillaume fg at nuxeo.com
Wed Dec 8 12:38:11 EST 2004


You left a pdb call there...

Florent

> Modified: Zope3/trunk/src/zope/app/pluggableauth/__init__.py
> ===================================================================
> --- Zope3/trunk/src/zope/app/pluggableauth/__init__.py	2004-12-08 00:46:02
> UTC (rev 28582)
> +++ Zope3/trunk/src/zope/app/pluggableauth/__init__.py	2004-12-08 01:33:06
> UTC (rev 28583)
> @@ -61,7 +63,12 @@
>  
>      implements(IPluggableAuthenticationService, IOrderedContainer)
>  
> -    def __init__(self, earmark=None):
> +    def __init__(self, earmark=None, hide_deprecation_warning=False):
> +        if not hide_deprecation_warning:
> +            import pdb; pdb.set_trace()
> +            warn("The `pluggableauth` module has been deprecated in favor of "
> +                 "the new `pas` code, which is much more modular and
> powerful.",
> +                 DeprecationWarning, 2)        
>          self.earmark = earmark
>          # The earmark is used as a token which can uniquely identify
>          # this authentication service instance even if the service moves


-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope3-Checkins mailing list