]> git.parisson.com Git - teleforma.git/commitdiff
rename
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 14:56:14 +0000 (16:56 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 14:56:14 +0000 (16:56 +0200)
teleforma/management/commands/teleforma-pull-metadata.py [new file with mode: 0644]
teleforma/management/commands/teleforma-pull.py [deleted file]

diff --git a/teleforma/management/commands/teleforma-pull-metadata.py b/teleforma/management/commands/teleforma-pull-metadata.py
new file mode 100644 (file)
index 0000000..33057f7
--- /dev/null
@@ -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 (file)
index 33057f7..0000000
+++ /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()
-