summaryrefslogtreecommitdiffstats
path: root/forum/authentication/__init__.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-27 16:06:23 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-27 16:07:39 -0400
commitacd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a (patch)
treedbb232a017f71934cfb05b264db0cca40ac00164 /forum/authentication/__init__.py
parent40ea3f482ffdfd648366ed20a87335dc31e92231 (diff)
downloadaskbot-acd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a.tar.gz
askbot-acd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a.tar.bz2
askbot-acd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a.zip
removed authentication module to be replaced with a dedicated app, also switched to table layout for openid signin template temporarily so that it works on IE7 and maybe earlier
Diffstat (limited to 'forum/authentication/__init__.py')
-rwxr-xr-xforum/authentication/__init__.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/forum/authentication/__init__.py b/forum/authentication/__init__.py
deleted file mode 100755
index 75099303..00000000
--- a/forum/authentication/__init__.py
+++ /dev/null
@@ -1,27 +0,0 @@
-import re
-from forum.modules import get_modules_script_classes
-from forum.authentication.base import AuthenticationConsumer, ConsumerTemplateContext
-
-class ConsumerAndContext():
- def __init__(self, id, consumer, context):
- self.id = id
- self.consumer = consumer()
-
- context.id = id #add extra field to context
- self.context = context
-
-consumers = dict([
- (re.sub('AuthConsumer$', '', name).lower(), cls) for name, cls
- in get_modules_script_classes('authentication', AuthenticationConsumer).items()
- if not re.search('AbstractAuthConsumer$', name)
- ])
-
-contexts = dict([
- (re.sub('AuthContext$', '', name).lower(), cls) for name, cls
- in get_modules_script_classes('authentication', ConsumerTemplateContext).items()
- ])
-
-AUTH_PROVIDERS = dict([
- (name, ConsumerAndContext(name, consumers[name], contexts[name])) for name in consumers.keys()
- if name in contexts
- ])