From 8f6f63c87128906be86fdfdf53aba48570677e87 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 16 Oct 2012 17:57:45 +0200 Subject: - normalize sco objects to separate table - add archive object for "published" archives - configurable return from form edits - tagging for archives - reset south --- meetingtools/apps/archive/management/__init__.py | 1 + .../apps/archive/management/commands/__init__.py | 1 + .../archive/management/commands/update_recordings.py | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 meetingtools/apps/archive/management/__init__.py create mode 100644 meetingtools/apps/archive/management/commands/__init__.py create mode 100644 meetingtools/apps/archive/management/commands/update_recordings.py (limited to 'meetingtools/apps/archive/management') 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() -- cgit v1.1