diff options
author | gnowgi <nagarjun@gnowledge.org> | 2012-12-19 07:49:01 -0800 |
---|---|---|
committer | gnowgi <nagarjun@gnowledge.org> | 2012-12-19 07:49:01 -0800 |
commit | 09ceb4b84ef4b56db42d24ba60e4c58bb9e0a951 (patch) | |
tree | e78056bee2300fab25cf675ccd989e46e103497a /notification/management/commands | |
parent | 3ba6b57c6d605262ef9e1f7bba8d62ea20aacc36 (diff) | |
parent | fb6d7b562bf6e2fad92a49061489af1abb92f2f6 (diff) | |
download | gnowsys-09ceb4b84ef4b56db42d24ba60e4c58bb9e0a951.tar.gz |
this commit, includes several unlisted features.
Diffstat (limited to 'notification/management/commands')
-rw-r--r-- | notification/management/commands/__init__.py | 0 | ||||
-rw-r--r-- | notification/management/commands/emit_notices.py | 15 |
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 |