diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:39:08 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:39:08 +0200 |
commit | 2bdad0ae7a3a6e4ec5116becd39910388b679ed2 (patch) | |
tree | 5afdfba0a93c1af50d53bdc245d57cc4053e109a /meetingtools/apps/room/management/commands | |
parent | 873e7823970352d591deee5f67f47c5436ee0e84 (diff) |
restructure
Diffstat (limited to 'meetingtools/apps/room/management/commands')
-rw-r--r-- | meetingtools/apps/room/management/commands/__init__.py | 1 | ||||
-rw-r--r-- | meetingtools/apps/room/management/commands/import_rooms.py | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/meetingtools/apps/room/management/commands/__init__.py b/meetingtools/apps/room/management/commands/__init__.py new file mode 100644 index 0000000..3929ed7 --- /dev/null +++ b/meetingtools/apps/room/management/commands/__init__.py @@ -0,0 +1 @@ +__author__ = 'leifj' diff --git a/meetingtools/apps/room/management/commands/import_rooms.py b/meetingtools/apps/room/management/commands/import_rooms.py new file mode 100644 index 0000000..7944be8 --- /dev/null +++ b/meetingtools/apps/room/management/commands/import_rooms.py @@ -0,0 +1,11 @@ +from django.core.management import BaseCommand +from meetingtools.apps.cluster.models import ACCluster +from meetingtools.apps.room.tasks import import_acc + +__author__ = 'leifj' + +class Command(BaseCommand): + + def handle(self, *args, **options): + for acc in ACCluster.objects.all(): + import_acc(acc,since=0)
\ No newline at end of file |