From: Guillaume Pellerin Date: Mon, 29 May 2023 14:56:14 +0000 (+0200) Subject: rename X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9e28f380d909008af53080bccb3bbfe05df43fa6;p=teleforma.git rename --- diff --git a/teleforma/management/commands/teleforma-pull-metadata.py b/teleforma/management/commands/teleforma-pull-metadata.py new file mode 100644 index 00000000..33057f7c --- /dev/null +++ b/teleforma/management/commands/teleforma-pull-metadata.py @@ -0,0 +1,29 @@ +from optparse import make_option +from django.conf import settings +from django.core.management.base import BaseCommand, CommandError +from django.contrib.auth.models import User +from django.template.defaultfilters import slugify +from telemeta.models import * +from telemeta.util.unaccent import unaccent +from teleforma.models import * +from teleforma.views import * +import logging +import codecs + +class Command(BaseCommand): + help = "pull teleforma conferences, periods and professors from a telecaster master servers" + admin_email = 'webmaster@parisson.com' + args = "Pre-Barreau" + + def handle(self, *args, **options): + organization_name = args[-1] + + view = PeriodAccessMixin() + view.pull(organization_name) + + view = CourseListView() + view.pull(organization_name) + + view = ProfessorListView() + view.pull() + diff --git a/teleforma/management/commands/teleforma-pull.py b/teleforma/management/commands/teleforma-pull.py deleted file mode 100644 index 33057f7c..00000000 --- a/teleforma/management/commands/teleforma-pull.py +++ /dev/null @@ -1,29 +0,0 @@ -from optparse import make_option -from django.conf import settings -from django.core.management.base import BaseCommand, CommandError -from django.contrib.auth.models import User -from django.template.defaultfilters import slugify -from telemeta.models import * -from telemeta.util.unaccent import unaccent -from teleforma.models import * -from teleforma.views import * -import logging -import codecs - -class Command(BaseCommand): - help = "pull teleforma conferences, periods and professors from a telecaster master servers" - admin_email = 'webmaster@parisson.com' - args = "Pre-Barreau" - - def handle(self, *args, **options): - organization_name = args[-1] - - view = PeriodAccessMixin() - view.pull(organization_name) - - view = CourseListView() - view.pull(organization_name) - - view = ProfessorListView() - view.pull() -