summaryrefslogtreecommitdiffstats
path: root/forum/authentication/__init__.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-10 11:29:55 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-10 11:29:55 -0400
commit6fd183a0e5ac47491ed7a8ffb2c36177575c9cc4 (patch)
tree7b8512ca3df149da221119e54fc60fe72fbebeca /forum/authentication/__init__.py
parent8822e0f2cf61d7f0564a67fcd0a1f435e8635603 (diff)
downloadaskbot-6fd183a0e5ac47491ed7a8ffb2c36177575c9cc4.tar.gz
askbot-6fd183a0e5ac47491ed7a8ffb2c36177575c9cc4.tar.bz2
askbot-6fd183a0e5ac47491ed7a8ffb2c36177575c9cc4.zip
fixed up INSTALL, settings_local.py.dist and replaced strings osqa->askbot everywhere, except main README file
Diffstat (limited to 'forum/authentication/__init__.py')
-rwxr-xr-xforum/authentication/__init__.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/forum/authentication/__init__.py b/forum/authentication/__init__.py
deleted file mode 100755
index eee0c870..00000000
--- a/forum/authentication/__init__.py
+++ /dev/null
@@ -1,31 +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
- self.context = context
-
- @property
- def consumer(self):
- return self._consumer()
-
-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
- ])