From: Guillaume Pellerin Date: Sat, 19 Jul 2014 15:05:31 +0000 (+0200) Subject: add level script X-Git-Tag: 1.1~393 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1a143080436e109a49c9a8e3dbf78237456c3d00;p=teleforma.git add level script --- diff --git a/teleforma/management/commands/teleforma-exam-print-levels.py b/teleforma/management/commands/teleforma-exam-print-levels.py new file mode 100644 index 00000000..fd1a99d7 --- /dev/null +++ b/teleforma/management/commands/teleforma-exam-print-levels.py @@ -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.exam.models import * +import logging +import codecs + + +class Command(BaseCommand): + help = "Print quota levels" + + def handle(self, *args, **options): + qs=Quota.objects.all() + for q in qs: + print q.corrector, q.level +