~widelands-dev/widelands-website/django_staticfiles

1
2
3
4
5
6
7
8
9
10
11
12
13
from django.utils.translation import ugettext_noop as _

try:
    from notification import models as notification

    def create_notice_types(sender, **kwargs):
        print('Creating notice types for maps ...')
        notification.create_notice_type('maps_new_map',
                                        _('A new Map is available'),
                                        _('a new map is available for download'), 1)
except ImportError:
    print 'Skipping creation of NoticeTypes as notification app not found'