diff options
author | anujag <anujag@anujag-D630.(none)> | 2012-12-14 14:24:09 +0530 |
---|---|---|
committer | anujag <anujag@anujag-D630.(none)> | 2012-12-14 14:24:09 +0530 |
commit | f5aa055c011c0cf60b7722da2a3d6192a233122d (patch) | |
tree | fb253681e989a1efc46999e198b2c5f9797758b3 /notification/management/commands/emit_notices.py | |
parent | 3ba6b57c6d605262ef9e1f7bba8d62ea20aacc36 (diff) | |
download | gnowsys-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.py | 15 |
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 |