From 61b1cdb070cab90e113c7073417960e433a51789 Mon Sep 17 00:00:00 2001 From: Arnaud Fabre <arnaud.fabre@camobscura.fr> Date: Mon, 25 May 2015 14:12:45 +0200 Subject: [PATCH] adds import command --- representatives_votes/management/__init__.py | 0 representatives_votes/management/commands/__init__.py | 0 .../commands/import_dossier_from_toutatis.py | 11 +++++++++++ 3 files changed, 11 insertions(+) create mode 100644 representatives_votes/management/__init__.py create mode 100644 representatives_votes/management/commands/__init__.py create mode 100644 representatives_votes/management/commands/import_dossier_from_toutatis.py diff --git a/representatives_votes/management/__init__.py b/representatives_votes/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/representatives_votes/management/commands/__init__.py b/representatives_votes/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/representatives_votes/management/commands/import_dossier_from_toutatis.py b/representatives_votes/management/commands/import_dossier_from_toutatis.py new file mode 100644 index 0000000..76beeab --- /dev/null +++ b/representatives_votes/management/commands/import_dossier_from_toutatis.py @@ -0,0 +1,11 @@ +import json +import urllib2 + +from django.core.management.base import BaseCommand +from django.conf import settings + + +class Command(BaseCommand): + def handle(self, *args, **options): + dossier_ref = args[0] + print(dossier_ref) -- GitLab