summaryrefslogtreecommitdiff
path: root/notification/management/commands/emit_notices.py
diff options
context:
space:
mode:
authoranujag <anujag@anujag-D630.(none)>2012-12-14 14:24:09 +0530
committeranujag <anujag@anujag-D630.(none)>2012-12-14 14:24:09 +0530
commitf5aa055c011c0cf60b7722da2a3d6192a233122d (patch)
treefb253681e989a1efc46999e198b2c5f9797758b3 /notification/management/commands/emit_notices.py
parent3ba6b57c6d605262ef9e1f7bba8d62ea20aacc36 (diff)
downloadgnowsys-f5aa055c011c0cf60b7722da2a3d6192a233122d.tar.gz
Updated code with recent changes
Diffstat (limited to 'notification/management/commands/emit_notices.py')
-rw-r--r--notification/management/commands/emit_notices.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/notification/management/commands/emit_notices.py b/notification/management/commands/emit_notices.py
new file mode 100644
index 00000000..af2ffcfd
--- /dev/null
+++ b/notification/management/commands/emit_notices.py
@@ -0,0 +1,15 @@
+
+import logging
+
+from django.core.management.base import NoArgsCommand
+
+from notification.engine import send_all
+
+class Command(NoArgsCommand):
+ help = "Emit queued notices."
+
+ def handle_noargs(self, **options):
+ logging.basicConfig(level=logging.DEBUG, format="%(message)s")
+ logging.info("-" * 72)
+ send_all()
+ \ No newline at end of file