From cfc913723ca689095d4a272426656cbd9c9d5c46 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 25 Jan 2010 20:28:39 +0530 Subject: [PATCH] add encoder --- oxdb/backend/management/commands/encoder.py | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 oxdb/backend/management/commands/encoder.py diff --git a/oxdb/backend/management/commands/encoder.py b/oxdb/backend/management/commands/encoder.py new file mode 100644 index 0000000..c835297 --- /dev/null +++ b/oxdb/backend/management/commands/encoder.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 + +import os +from os.path import join, dirname, basename, splitext, exists + +from django.core.management.base import BaseCommand, CommandError +from django.conf import settings + +from ... import encoder + + +class Command(BaseCommand): + """ + listen to rabbitmq and execute encoding tasks. + """ + help = 'listen to rabbitmq and execute encoding tasks.' + args = '' + + def handle(self, **options): + encoder.run() +