Browse Source

WIP #410: moderation api

Rafał Pitoń 10 years ago
parent
commit
98758f6c22

+ 4 - 0
misago/threads/moderation/__init__.py

@@ -0,0 +1,4 @@
+# flake8: noqa
+from misago.threads.moderation.exceptions import *
+from misago.threads.moderation.threads import *
+from misago.threads.moderation.posts import *

+ 6 - 0
misago/threads/moderation/exceptions.py

@@ -0,0 +1,6 @@
+class ModerationError(Exception):
+    def __init__(self, message):
+        self.message = message
+
+    def __unicode__(self):
+        return self.message

+ 1 - 0
misago/threads/moderation/posts.py

@@ -0,0 +1 @@
+from misago.threads.moderation.exceptions import ModerationError

+ 1 - 0
misago/threads/moderation/threads.py

@@ -0,0 +1 @@
+from misago.threads.moderation.exceptions import ModerationError