changeset 5483:686b698d48ee

HTTPAuth deprecation warning moved from class level to __init__
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 03 Feb 2010 02:19:45 +0100
parents cded5f776bc1
children b0dfed9a569f
files MoinMoin/auth/http.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/http.py	Tue Feb 02 15:29:21 2010 +0100
+++ b/MoinMoin/auth/http.py	Wed Feb 03 02:19:45 2010 +0100
@@ -50,7 +50,10 @@
 
 class HTTPAuth(GivenAuth):
     name = 'http'  # GivenAuth uses 'given'
-    logging.warning("DEPRECATED use of MoinMoin.auth.http.HTTPAuth, please read instructions there or docs/CHANGES!")
+
+    def __init__(self, *args, **kwargs):
+        logging.warning("DEPRECATED use of MoinMoin.auth.http.HTTPAuth, please read instructions there or docs/CHANGES!")
+        GivenAuth.__init__(self, *args, **kwargs)
 
 
 class HTTPAuthMoin(BaseAuth):