~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wiki/management.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    from notification import models as notification
7
7
 
8
8
    def create_notice_types(app, created_models, verbosity, **kwargs):
9
 
        notification.create_notice_type("wiki_article_edited",
10
 
                                        _("Article Edited"),
11
 
                                        _("your article has been edited"))
12
 
        notification.create_notice_type("wiki_revision_reverted",
13
 
                                        _("Article Revision Reverted"),
14
 
                                        _("your revision has been reverted"))
15
 
        notification.create_notice_type("wiki_observed_article_changed",
16
 
                                        _("Observed Article Changed"),
17
 
                                        _("an article you observe has changed"))
18
 
 
 
9
        notification.create_notice_type('wiki_article_edited',
 
10
                                        _('Article Edited'),
 
11
                                        _('your article has been edited'))
 
12
        notification.create_notice_type('wiki_revision_reverted',
 
13
                                        _('Article Revision Reverted'),
 
14
                                        _('your revision has been reverted'))
 
15
        notification.create_notice_type('wiki_observed_article_changed',
 
16
                                        _('Observed Article Changed'),
 
17
                                        _('an article you observe has changed'))
19
18
 
20
19
    signals.post_syncdb.connect(create_notice_types,
21
20
                                sender=notification)
22
21
except ImportError:
23
 
    print "Skipping creation of NoticeTypes as notification app not found"
 
22
    print 'Skipping creation of NoticeTypes as notification app not found'