diff options
Diffstat (limited to 'meetingtools/apps/archive/management')
3 files changed, 21 insertions, 0 deletions
diff --git a/meetingtools/apps/archive/management/__init__.py b/meetingtools/apps/archive/management/__init__.py new file mode 100644 index 0000000..3929ed7 --- /dev/null +++ b/meetingtools/apps/archive/management/__init__.py @@ -0,0 +1 @@ +__author__ = 'leifj' diff --git a/meetingtools/apps/archive/management/commands/__init__.py b/meetingtools/apps/archive/management/commands/__init__.py new file mode 100644 index 0000000..3929ed7 --- /dev/null +++ b/meetingtools/apps/archive/management/commands/__init__.py @@ -0,0 +1 @@ +__author__ = 'leifj' diff --git a/meetingtools/apps/archive/management/commands/update_recordings.py b/meetingtools/apps/archive/management/commands/update_recordings.py new file mode 100644 index 0000000..8aad747 --- /dev/null +++ b/meetingtools/apps/archive/management/commands/update_recordings.py @@ -0,0 +1,19 @@ +from django.core.management import BaseCommand +from meetingtools.apps.archive.models import Archive +from meetingtools.apps.cluster.models import ACCluster + +__author__ = 'leifj' + +class Command(BaseCommand): + + def handle(self, *args, **options): + for ar in Archive.objects.all(): + info = ar.sco.info() + if info is None: + continue + print info + if info.has_key('name'): + ar.name = info['name'] + if info.has_key('description'): + ar.description = info['description'] + ar.save() |