blob: 5ed245aff3676fe033145dbc4e6043f61b7460f8 (
plain)
1
2
3
4
5
6
7
8
9
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)
])
|