]> git.parisson.com Git - teleforma.git/commitdiff
add push/pull commands for confs anf profs
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 11 Jul 2013 21:29:30 +0000 (23:29 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 11 Jul 2013 21:29:30 +0000 (23:29 +0200)
teleforma/management/commands/teleforma-pull-conferences.py [new file with mode: 0644]
teleforma/management/commands/teleforma-pull-professors.py [new file with mode: 0644]
teleforma/management/commands/teleforma-push-conferences.py [new file with mode: 0644]

diff --git a/teleforma/management/commands/teleforma-pull-conferences.py b/teleforma/management/commands/teleforma-pull-conferences.py
new file mode 100644 (file)
index 0000000..8762da5
--- /dev/null
@@ -0,0 +1,20 @@
+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 from a remote host"
+    args = "host"
+    admin_email = 'webmaster@parisson.com'
+
+    def handle(self, *args, **options):
+        view = ConferenceListView()
+        view.pull()
diff --git a/teleforma/management/commands/teleforma-pull-professors.py b/teleforma/management/commands/teleforma-pull-professors.py
new file mode 100644 (file)
index 0000000..b7ad0d6
--- /dev/null
@@ -0,0 +1,19 @@
+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 from a telecaster master server"
+    admin_email = 'webmaster@parisson.com'
+
+    def handle(self, *args, **options):
+        view = ProfessorListView()
+        view.pull()
diff --git a/teleforma/management/commands/teleforma-push-conferences.py b/teleforma/management/commands/teleforma-push-conferences.py
new file mode 100644 (file)
index 0000000..016af79
--- /dev/null
@@ -0,0 +1,20 @@
+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 from a remote host"
+    args = "host"
+    admin_email = 'webmaster@parisson.com'
+
+    def handle(self, *args, **options):
+        view = ConferenceListView()
+        view.push()