summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-01 14:51:06 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-01 14:51:06 +0200
commitaedb495c353b6810ec6da72ae5a0dcd8980d22ad (patch)
tree1a69b0590e313f4912652ab6c873f629d67862ff /src
parent87ee517faa045893fc44406b6d4ae043666b96bf (diff)
management command for bulk import
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/apps/room/management/__init__.py1
-rw-r--r--src/meetingtools/apps/room/management/commands/__init__.py1
-rw-r--r--src/meetingtools/apps/room/management/commands/import_rooms.py11
3 files changed, 13 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/management/__init__.py b/src/meetingtools/apps/room/management/__init__.py
new file mode 100644
index 0000000..3929ed7
--- /dev/null
+++ b/src/meetingtools/apps/room/management/__init__.py
@@ -0,0 +1 @@
+__author__ = 'leifj'
diff --git a/src/meetingtools/apps/room/management/commands/__init__.py b/src/meetingtools/apps/room/management/commands/__init__.py
new file mode 100644
index 0000000..3929ed7
--- /dev/null
+++ b/src/meetingtools/apps/room/management/commands/__init__.py
@@ -0,0 +1 @@
+__author__ = 'leifj'
diff --git a/src/meetingtools/apps/room/management/commands/import_rooms.py b/src/meetingtools/apps/room/management/commands/import_rooms.py
new file mode 100644
index 0000000..7944be8
--- /dev/null
+++ b/src/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