summaryrefslogtreecommitdiff
path: root/notification/management/commands
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-12-19 07:49:01 -0800
committergnowgi <nagarjun@gnowledge.org>2012-12-19 07:49:01 -0800
commit09ceb4b84ef4b56db42d24ba60e4c58bb9e0a951 (patch)
treee78056bee2300fab25cf675ccd989e46e103497a /notification/management/commands
parent3ba6b57c6d605262ef9e1f7bba8d62ea20aacc36 (diff)
parentfb6d7b562bf6e2fad92a49061489af1abb92f2f6 (diff)
downloadgnowsys-09ceb4b84ef4b56db42d24ba60e4c58bb9e0a951.tar.gz
Merge pull request #86 from anujag/masterHEADmaster
this commit, includes several unlisted features.
Diffstat (limited to 'notification/management/commands')
-rw-r--r--notification/management/commands/__init__.py0
-rw-r--r--notification/management/commands/emit_notices.py15
2 files changed, 15 insertions, 0 deletions
diff --git a/notification/management/commands/__init__.py b/notification/management/commands/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/notification/management/commands/__init__.py
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