From 6d8d12aa2965f0a9b8ae7b4dd1962d34724c8e7a Mon Sep 17 00:00:00 2001
From: J08nY
Date: Fri, 11 Aug 2017 00:19:16 +0200
Subject: Setup base Django project structure.
---
example_project/urls.py | 4 +
setup.py | 4 +-
src/django-pgpmailman/__init__.py | 0
src/django_pgpmailman/__init__.py | 0
src/django_pgpmailman/apps.py | 25 +++++
.../static/django-pgpmailman/img/favicon.ico | Bin 0 -> 5558 bytes
.../static/django-pgpmailman/img/mailman_logo.png | Bin 0 -> 11742 bytes
.../img/mailman_logo_small_trans.png | Bin 0 -> 1369 bytes
.../django-pgpmailman/img/mailman_logo_trans.png | Bin 0 -> 8027 bytes
src/django_pgpmailman/templates/account/base.html | 1 +
.../templates/django_mailman3/base.html | 1 +
.../templates/django_pgpmailman/base.html | 124 +++++++++++++++++++++
.../templates/django_pgpmailman/index.html | 49 ++++++++
src/django_pgpmailman/urls.py | 26 +++++
src/django_pgpmailman/views/__init__.py | 0
src/django_pgpmailman/views/list.py | 26 +++++
tox.ini | 0
17 files changed, 258 insertions(+), 2 deletions(-)
delete mode 100644 src/django-pgpmailman/__init__.py
create mode 100644 src/django_pgpmailman/__init__.py
create mode 100644 src/django_pgpmailman/apps.py
create mode 100644 src/django_pgpmailman/static/django-pgpmailman/img/favicon.ico
create mode 100644 src/django_pgpmailman/static/django-pgpmailman/img/mailman_logo.png
create mode 100644 src/django_pgpmailman/static/django-pgpmailman/img/mailman_logo_small_trans.png
create mode 100644 src/django_pgpmailman/static/django-pgpmailman/img/mailman_logo_trans.png
create mode 100644 src/django_pgpmailman/templates/account/base.html
create mode 100644 src/django_pgpmailman/templates/django_mailman3/base.html
create mode 100644 src/django_pgpmailman/templates/django_pgpmailman/base.html
create mode 100644 src/django_pgpmailman/templates/django_pgpmailman/index.html
create mode 100644 src/django_pgpmailman/urls.py
create mode 100644 src/django_pgpmailman/views/__init__.py
create mode 100644 src/django_pgpmailman/views/list.py
create mode 100644 tox.ini
diff --git a/example_project/urls.py b/example_project/urls.py
index 29136ea..69f432a 100644
--- a/example_project/urls.py
+++ b/example_project/urls.py
@@ -35,6 +35,10 @@ from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
+ url(r'^pgp/', include('django_pgpmailman.urls')),
+ # url(r'^postorius/', include('postorius.urls')),
+ # url(r'^hyperkitty/', include('hyperkitty.urls')),
url(r'', include('django_mailman3.urls')),
+ url(r'^accounts/', include('allauth.urls')),
url(r'^admin/', admin.site.urls),
]
diff --git a/setup.py b/setup.py
index 9cae556..608d19d 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import find_packages, setup
setup(
- name='django-pgpmailman',
+ name='django_pgpmailman',
version='0.1',
description='A web interface extension for the GNU Mailman apps Postorius and HyperKitty.',
long_description="""""",
@@ -24,7 +24,7 @@ setup(
install_requires=[
'Django>=1.8',
'Django<1.12',
- 'django-mailman3',
+ 'django_mailman3',
'mailmanclient',
]
)
diff --git a/src/django-pgpmailman/__init__.py b/src/django-pgpmailman/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/src/django_pgpmailman/__init__.py b/src/django_pgpmailman/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/src/django_pgpmailman/apps.py b/src/django_pgpmailman/apps.py
new file mode 100644
index 0000000..47cfbc3
--- /dev/null
+++ b/src/django_pgpmailman/apps.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2017 Jan Jancar
+#
+# This file is a part of the Django Mailman PGP plugin.
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU 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 General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see
| {% trans 'List name' %} | +{% trans 'Post address' %} | +{% trans 'Description' %} | +|
|---|---|---|---|
| + {{ mlist.display_name }} + {% if user.is_superuser and not mlist.settings.advertised %} ({% trans 'unadvertised' %}*){% endif %} + | +{{ mlist.fqdn_listname }} | +{{ pgp_list.key.fingerprint }} | +{{ mlist.settings.description }} | +
{% trans 'There are currently no PGP enabled mailing lists.' %}
+ {% endif %} + +{% endblock content %} diff --git a/src/django_pgpmailman/urls.py b/src/django_pgpmailman/urls.py new file mode 100644 index 0000000..8c63141 --- /dev/null +++ b/src/django_pgpmailman/urls.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2017 Jan Jancar +# +# This file is a part of the Django Mailman PGP plugin. +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see