diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-16 17:57:45 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-16 17:57:45 +0200 |
commit | 8f6f63c87128906be86fdfdf53aba48570677e87 (patch) | |
tree | 443ae2807ace7ed11306699c69cd4f209352874e /meetingtools/apps/archive/management | |
parent | a15a4d81d5520adbfbbc5509202e32b1b56f826a (diff) |
- normalize sco objects to separate tablesco
- add archive object for "published" archives
- configurable return from form edits
- tagging for archives
- reset south
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() |