summaryrefslogtreecommitdiffstats
path: root/forum/badges/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/badges/__init__.py')
-rwxr-xr-xforum/badges/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/forum/badges/__init__.py b/forum/badges/__init__.py
new file mode 100755
index 00000000..8d7cd097
--- /dev/null
+++ b/forum/badges/__init__.py
@@ -0,0 +1,10 @@
+import re
+
+from forum.badges.base import BadgeImplementation
+from forum.modules import get_modules_script_classes
+
+ALL_BADGES = dict([
+ (re.sub('BadgeImpl', '', name).lower(), cls) for name, cls
+ in get_modules_script_classes('badges', BadgeImplementation).items()
+ if not re.search('AbstractBadgeImpl$', name)
+ ]) \ No newline at end of file