diff --git a/MANIFEST.in b/MANIFEST.in
index 3be7c1f..e0a5bc1 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -12,7 +12,6 @@ recursive-include welco/contacts/templates *.html
recursive-include welco/sources/counter/templates *.html
recursive-include welco/sources/phone/templates *.html
recursive-include welco/sources/mail/templates *.html
-recursive-include welco/contrib/alfortville/templates *.html *.txt
include COPYING README
include MANIFEST.in
diff --git a/welco/contrib/alfortville/__init__.py b/welco/contrib/alfortville/__init__.py
deleted file mode 100644
index cab37e2..0000000
--- a/welco/contrib/alfortville/__init__.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# welco - multichannel request processing
-# Copyright (C) 2015 Entr'ouvert
-#
-# This program is free software: you can redistribute it and/or modify it
-# under the terms of the GNU Affero General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-
-import django.apps
-
-class AppConfig(django.apps.AppConfig):
- name = 'welco.contrib.alfortville'
-
- def get_before_urls(self):
- from . import urls
- return urls.urlpatterns
-
-default_app_config = 'welco.contrib.alfortville.AppConfig'
diff --git a/welco/contrib/alfortville/management/__init__.py b/welco/contrib/alfortville/management/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/welco/contrib/alfortville/management/commands/__init__.py b/welco/contrib/alfortville/management/commands/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/welco/contrib/alfortville/management/commands/send-avis-email.py b/welco/contrib/alfortville/management/commands/send-avis-email.py
deleted file mode 100644
index 6209197..0000000
--- a/welco/contrib/alfortville/management/commands/send-avis-email.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# welco - multichannel request processing
-# Copyright (C) 2015-2016 Entr'ouvert
-#
-# This program is free software: you can redistribute it and/or modify it
-# under the terms of the GNU Affero General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-
-from django.conf import settings
-from django.contrib.auth import get_user_model
-from django.contrib.contenttypes.models import ContentType
-from django.core.mail import EmailMessage, send_mass_mail
-from django.core.management.base import BaseCommand, CommandError
-from django.template.loader import render_to_string
-
-from hobo.agent.common.models import Role
-from welco.contrib.alfortville.models import Inbox
-from welco.sources.mail.models import Mail
-
-
-class Command(BaseCommand):
- def handle(self, *args, **kwargs):
- ctx = {}
- ctx.update(getattr(settings, 'TEMPLATE_VARS', {}))
-
- subject = render_to_string(['alfortville/avis-email_subject.txt'], ctx).strip()
- message = render_to_string(['alfortville/avis-email_body.txt'], ctx)
- mails = []
-
- relevant_mails = Mail.objects.filter(status='done-dga')
- content_type = ContentType.objects.get_for_model(Mail)
-
- User = get_user_model()
- for user in User.objects.all():
- user_roles = [x.uuid for x in Role.objects.filter(user=user)]
- avis = Inbox.objects.filter(
- role_slug__in=user_roles,
- source_type=content_type,
- source_pk__in=[x.id for x in relevant_mails],
- subtype__in=[Inbox.MANDATORY_AVIS, Inbox.AVIS],
- done=False)
- if avis.count() == 0:
- continue
- mails.append((subject, message, settings.DEFAULT_FROM_EMAIL, [user.email]))
-
- if mails:
- send_mass_mail(mails)
diff --git a/welco/contrib/alfortville/migrations/0001_initial.py b/welco/contrib/alfortville/migrations/0001_initial.py
deleted file mode 100644
index 6788f46..0000000
--- a/welco/contrib/alfortville/migrations/0001_initial.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models, migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('qualif', '0003_association_comments'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='Inbox',
- fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('role_slug', models.CharField(max_length=50)),
- ('subtype', models.PositiveSmallIntegerField(default=1, choices=[(1, b'info'), (2, b'avis')])),
- ('done', models.BooleanField(default=False)),
- ('qualif', models.ForeignKey(to='qualif.Association')),
- ],
- options={
- },
- bases=(models.Model,),
- ),
- ]
diff --git a/welco/contrib/alfortville/migrations/0002_auto_20151009_1331.py b/welco/contrib/alfortville/migrations/0002_auto_20151009_1331.py
deleted file mode 100644
index be70a26..0000000
--- a/welco/contrib/alfortville/migrations/0002_auto_20151009_1331.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models, migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('contenttypes', '0001_initial'),
- ('alfortville', '0001_initial'),
- ]
-
- operations = [
- migrations.RemoveField(
- model_name='inbox',
- name='qualif',
- ),
- migrations.AddField(
- model_name='inbox',
- name='source_pk',
- field=models.PositiveIntegerField(null=True),
- preserve_default=True,
- ),
- migrations.AddField(
- model_name='inbox',
- name='source_type',
- field=models.ForeignKey(to='contenttypes.ContentType', null=True),
- preserve_default=True,
- ),
- ]
diff --git a/welco/contrib/alfortville/migrations/0003_inbox_comments.py b/welco/contrib/alfortville/migrations/0003_inbox_comments.py
deleted file mode 100644
index ed3d219..0000000
--- a/welco/contrib/alfortville/migrations/0003_inbox_comments.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models, migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('alfortville', '0002_auto_20151009_1331'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='inbox',
- name='comments',
- field=models.TextField(verbose_name='Comments', blank=True),
- preserve_default=True,
- ),
- ]
diff --git a/welco/contrib/alfortville/migrations/0004_auto_20151016_1523.py b/welco/contrib/alfortville/migrations/0004_auto_20151016_1523.py
deleted file mode 100644
index e17cf0b..0000000
--- a/welco/contrib/alfortville/migrations/0004_auto_20151016_1523.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models, migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('alfortville', '0003_inbox_comments'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='inbox',
- name='subtype',
- field=models.PositiveSmallIntegerField(default=1, choices=[(1, b'info'), (2, b'avis'), (3, b'mandatory-avis')]),
- preserve_default=True,
- ),
- ]
diff --git a/welco/contrib/alfortville/migrations/0005_auto_20151016_1523.py b/welco/contrib/alfortville/migrations/0005_auto_20151016_1523.py
deleted file mode 100644
index b053299..0000000
--- a/welco/contrib/alfortville/migrations/0005_auto_20151016_1523.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models, migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('alfortville', '0004_auto_20151016_1523'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='inbox',
- name='comments',
- field=models.TextField(null=True, verbose_name='Comments', blank=True),
- preserve_default=True,
- ),
- ]
diff --git a/welco/contrib/alfortville/migrations/0006_inbox_last_update_timestamp.py b/welco/contrib/alfortville/migrations/0006_inbox_last_update_timestamp.py
deleted file mode 100644
index f2b19ce..0000000
--- a/welco/contrib/alfortville/migrations/0006_inbox_last_update_timestamp.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('alfortville', '0005_auto_20151016_1523'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='inbox',
- name='last_update_timestamp',
- field=models.DateTimeField(auto_now=True, null=True),
- ),
- ]
diff --git a/welco/contrib/alfortville/migrations/__init__.py b/welco/contrib/alfortville/migrations/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/welco/contrib/alfortville/models.py b/welco/contrib/alfortville/models.py
deleted file mode 100644
index cb1d12e..0000000
--- a/welco/contrib/alfortville/models.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# welco - multichannel request processing
-# Copyright (C) 2015 Entr'ouvert
-#
-# This program is free software: you can redistribute it and/or modify it
-# under the terms of the GNU Affero General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-
-from django.contrib.contenttypes.models import ContentType
-from django.contrib.contenttypes.fields import GenericForeignKey
-from django.db import models
-from django.utils.translation import ugettext_lazy as _
-
-from hobo.agent.common.models import Role
-
-
-class Inbox(models.Model):
- INFO = 1
- AVIS = 2
- MANDATORY_AVIS = 3
-
- role_slug = models.CharField(max_length=50)
- subtype = models.PositiveSmallIntegerField(
- choices=((INFO, 'info'),
- (AVIS, 'avis'),
- (MANDATORY_AVIS, 'mandatory-avis')),
- default=INFO)
- source_type = models.ForeignKey(ContentType, null=True)
- source_pk = models.PositiveIntegerField(null=True)
- source = GenericForeignKey('source_type', 'source_pk')
- done = models.BooleanField(default=False)
- comments = models.TextField(blank=True, null=True, verbose_name=_('Comments'))
- last_update_timestamp = models.DateTimeField(auto_now=True, null=True)
-
- def role_name(self):
- return Role.objects.get(uuid=self.role_slug).name
diff --git a/welco/contrib/alfortville/templates/alfortville/avis-email_body.txt b/welco/contrib/alfortville/templates/alfortville/avis-email_body.txt
deleted file mode 100644
index e60de9c..0000000
--- a/welco/contrib/alfortville/templates/alfortville/avis-email_body.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Bonjour,
-
-Vous avez des avis à donner sur des courriers (avis requis et/ou avis
-demandés).
-
-Pour prendre connaissance des courriers et déposer vos avis, merci de vous
-rendre sur :
-
-{{ portal_agent_url }}
diff --git a/welco/contrib/alfortville/templates/alfortville/avis-email_subject.txt b/welco/contrib/alfortville/templates/alfortville/avis-email_subject.txt
deleted file mode 100644
index 8c7155f..0000000
--- a/welco/contrib/alfortville/templates/alfortville/avis-email_subject.txt
+++ /dev/null
@@ -1 +0,0 @@
-Avis attendus sur des courriers
diff --git a/welco/contrib/alfortville/templates/alfortville/copies.html b/welco/contrib/alfortville/templates/alfortville/copies.html
deleted file mode 100644
index b418524..0000000
--- a/welco/contrib/alfortville/templates/alfortville/copies.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{% extends "welco/base.html" %}
-{% load i18n static %}
-
-{% block content %}
-
-
-
-{% endblock %}
diff --git a/welco/contrib/alfortville/templates/alfortville/dg-table.html b/welco/contrib/alfortville/templates/alfortville/dg-table.html
deleted file mode 100644
index 86b9563..0000000
--- a/welco/contrib/alfortville/templates/alfortville/dg-table.html
+++ /dev/null
@@ -1,63 +0,0 @@
-{% extends "welco/base.html" %}
-{% load i18n static %}
-
-{% block bodyargs %}class="mail-dg-table"{% endblock %}
-
-{% block breadcrumb %}
-{{block.super}}
-{{home_screen_title}}
-{% endblock %}
-
-{% block content %}
-
-