Commit b17db93c authored by Florian Fuchs's avatar Florian Fuchs

- moved all remains of mailman_django to mailmanweb

- layout changes
- moved dummy auth to django auth
parent ce1d7a0d
=======================================
mailman-django - web ui for GNU Mailman
=======================================
===================================
mailmanweb - web ui for GNU Mailman
===================================
Copyright (C) 1998-2010 by the Free Software Foundation, Inc.
The ``mailman-django`` Django app provides a web user interface to
The ``mailmanweb`` Django app provides a web user interface to
access GNU Mailman.
``mailman-django`` is free software: you can redistribute it and/or
``mailmanweb`` is free software: you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3 of the License.
``mailman-django`` is distributed in the hope that it will be useful,
``mailmanweb`` 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 Lesser
General Public License for more details.
......@@ -23,7 +23,7 @@ along with mailman.client. If not, see <http://www.gnu.org/licenses/>.
Requirements
============
``mailman-django`` requires Python 2.6 or newer and ``mailman.client``,
``mailmanweb`` requires Python 2.6 or newer and ``mailman.client``,
the official Python bindings for GNU Mailman.
......
......@@ -4,8 +4,8 @@ ez_setup.use_setuptools()
from setuptools import setup, find_packages
setup(
name = "mailman_django",
version = "0.1",
name = "mailmanweb",
version = '0.0.1',
description = "A web user interface for GNU Mailman",
long_description=open('README.rst').read(),
maintainer = "The Mailman GSOC Coders",
......
setup.py
src/mailman_django/__init__.py
src/mailman_django/context_processors.py
src/mailman_django/fieldset_forms.py
src/mailman_django/forms.py
src/mailman_django/models.py
src/mailman_django/urls.py
src/mailman_django/views.py
src/mailman_django.egg-info/PKG-INFO
src/mailman_django.egg-info/SOURCES.txt
src/mailman_django.egg-info/dependency_links.txt
src/mailman_django.egg-info/top_level.txt
src/mailman_django/auth/__init__.py
src/mailman_django/auth/restbackend.py
src/mailman_django/tests/__init__.py
src/mailman_django/tests/setup.py
src/mailman_django/tests/tests.py
\ No newline at end of file
/* Reset styles - do not modify */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
ins { background-color: #ff9; color: #000; text-decoration: none; }
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
table { border-collapse: collapse; border-spacing: 0; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
input, select { vertical-align: middle; }
body { font:13px/1.231 sans-serif; *font-size:small; }
select, input, textarea, button { font:99% sans-serif; }
pre, code, kbd, samp { font-family: monospace, sans-serif; }
html { overflow-y: scroll; }
a:hover, a:active { outline: none; }
ul, ol { margin-left: 2em; }
ol { list-style-type: decimal; }
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
small { font-size: 85%; }
strong, th { font-weight: bold; }
td { vertical-align: top; }
sub, sup { font-size: 75%; line-height: 0; position: relative; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 15px; }
textarea { overflow: auto; }
.ie6 legend, .ie7 legend { margin-left: -7px; }
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
button, input, select, textarea { margin: 0; }
input:valid, textarea:valid { }
input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
a:link { -webkit-tap-highlight-color: #FF5E99; }
button { width: auto; overflow: visible; }
.ie7 img { -ms-interpolation-mode: bicubic; }
body, select, input, textarea { color: #444; }
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
a, a:active, a:visited { color: #607890; }
a:hover { color: #036; }
/* Add layout tyles here */
body {
font-size: 87.5%;
font-family: Verdana, Arial, sans-serif;
}
h1 {
font-size: 2em;
text-align: center;
}
h1 span {
font-size: 0.667em;
font-weight: normal;
}
#mm_page {
width: 765px;
margin: 5px auto;
padding: 25px 0 25px 35px;
border-radius: 5px;
}
.mm_actionButtons {
margin: 30px 0 30px 0;
}
.mm_actionButtons li {
float: left;
margin-right: 24px;
margin-bottom: 35px;
height: 46px;
display: table;
width: 165px;
border: 1px solid #babdb6;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
box-shadow: 0 0 5px #babdb6;
background: #D4D4D4;
}
.mm_actionButtons li:last-child {
margin-right: 0;
}
.mm_actionButtons a,
.mm_actionButtons a:hover {
padding-left: 10px;
text-decoration: none;
font-weight: bold;
color: #444;
display: table-cell;
vertical-align: middle;
border: 1px solid;
border-color: #f8f8f7 #f8f8f7 #d1d2d1 #f8f8f7;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background: -webkit-linear-gradient(rgb(244,244,243), rgb(197,197,197));
background: -webkit-linear-gradient(rgb(244,244,243), rgb(197,197,197));
}
.mm_box, fieldset {
margin: 35px 35px 35px 0;
padding: 0 10px 10px 10px;
background-color: #FFF;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
box-shadow: 0 0 5px #babdb6;
}
.mm_boxHeader, fieldset legend{
background-color: #F2F2F0;
font-weight: bold;
padding: 5px 10px;
margin-left: -10px;
margin-right: -10px;
margin-bottom: 10px;
border-bottom: 1px solid #E4E5E2;
}
fieldset legend {
width: 100%;
}
.mm_box p {
margin: 10px 0;
text-align: center;
}
.mm_smallBox {
width: 333px;
margin: 0 25px 35px 0;
float: left;
}
#mm_footer {
clear: both;
margin: 35px 35px 0 35px;
text-align: right;
}
/* IE styles */
.ie6 .mm_actionButtons li,
.ie7 .mm_actionButtons li,
.ie8 .mm_actionButtons li {
margin-right: 21px;
}
.ie6 .mm_box,
.ie7 .mm_box,
.ie8 .mm_box {
border: 1px solid #E4E5E2;
}
.ie6 .mm_actionButtons li.mm_last,
.ie7 .mm_actionButtons li.mm_last,
.ie8 .mm_actionButtons li.mm_last {
margin-right: 0;
}
.mm_ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.mm_hidden { display: none; visibility: hidden; }
.mm_visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.mm_visuallyhidden.focusable:active,
.mm_visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.mm_invisible { visibility: hidden; }
.mm_clear { clear: both; }
.mm_clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.mm_clearfix:after { clear: both; }
.mm_clearfix { zoom: 1; }
@media all and (orientation:portrait) {
}
@media all and (orientation:landscape) {
}
@media screen and (max-device-width: 480px) {
/* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}
@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
-ms-filter: none !important; }
a, a:visited { color: #444 !important; text-decoration: underline; }
a[href]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
thead { display: table-header-group; }
tr, img { page-break-inside: avoid; }
@page { margin: 0.5cm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3{ page-break-after: avoid; }
}
<!doctype html>
{% load i18n %}
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--><!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--><!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--><!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--><head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="{{ STATIC_URL }}mailman_django/{{ MAILMAN_THEME }}images/favicon.ico">
<link rel="apple-touch-icon" href="{{ STATIC_URL }}mailman_django/{{ MAILMAN_THEME }}images/apple-touch-icon.png">
<link rel="stylesheet" href="{{ STATIC_URL }}mailman_django/{{ MAILMAN_THEME }}/css/style.css?v=2">
<link rel="stylesheet" href="{{ STATIC_URL }}mailman_django/{{ MAILMAN_THEME }}/css/forms.css">
<script src="{{ STATIC_URL }}{{ MAILMAN_THEME }}mailman_django/{{ MAILMAN_THEME }}/js/libs/modernizr-1.7.min.js"></script>
</head>
<body>
<div id="mm_page">
<h1>
{% block heading %}
{% if list %}
{{list.list_name}} <span>{{list.real_name}}</span>
{% else %}
<span>on {{domain}}</span>
{% endif %}
{% endblock %}</h1>
{% if error %}
<div class="mm_box mm_smallBox">
<div class="mm_boxHeader">{% trans "Error" %}</div>
{{error}}
</div>
{% endif %}
{% if message %}
<div class="mm_box mm_smallBox">
<div class="mm_boxHeader">{% trans "Message" %}</div>
{{message}}
</div>
{% endif %}
{% block header%}{% endblock %}
{% block actionButtonsList %}{% endblock %}
{% block smallBoxLeft %}{% endblock %}
{% block smallBoxRight %}{% endblock %}
<div id="mm_footer">
{% block footer %}
<p><a href="/">Lists</a>
<a href="/domains/">Domains</a>
{% if request.user.is_authenticated %}
<a href="{% url user_login %}">{% trans "Login" %}</a> {{request.user.username}}
{% else %}
<a href="{% url user_logout %}">{% trans "Logout" %}</a> {{request.user.username}}
{% endif %}
</p>
{% endblock %}
</div>
</div>
<script src="{{ STATIC_URL }}mailman_django/{{ MAILMAN_THEME }}/js/libs/jquery-1.5.1.min.js"></script>
<script src="{{ STATIC_URL }}mailman_django/{{ MAILMAN_THEME }}/js/plugins.js"></script>
<script src="{{ STATIC_URL }}mailman_django/{{ MAILMAN_THEME }}/js/script.js"></script>
</body>
{% extends "mailman-django/base.html" %}
{% load i18n %}
{% block heading %}
Lists <span>on {{ domain_name }}</span>
{% endblock %}
{% block actionButtonsList %}
<ul class="mm_actionButtons">
<li class="mm_list_new"><a href="{% url list_new %}">{% trans "Create new List" %}</a></li>
</ul>
{% endblock %}
{% block smallBoxLeft %}
{% for list in lists %}
<!-- #TODO ACL - advertised for admin only-->
<div class="mm_box mm_smallBox {% cycle 'mm_clear' '' %}">
<div class="mm_boxHeader">
<a href="{% url list_summary fqdn_listname=list.fqdn_listname %}">
{{ list.real_name }} ({{ list.fqdn_listname }})
{% if not list.settings.advertised %}(non-public){% endif %}
</a>
</div>
<ul>
<li><a href="{% url list_subscriptions fqdn_listname=list.fqdn_listname %}">{%trans "Subscriptions" %}</a></li>
<li><a href="{% url list_settings list.fqdn_listname %}">{%trans "Settings" %}</a></li>
<li><a href="{% url list_delete list.fqdn_listname %}">{%trans "Delete list" %}</a></li>
</ul>
</div>
{% endfor %}
{% endblock %}
{% extends "mailman-django/base.html" %}
{% load i18n %}
{% block heading %}
{% trans "Mass Subscribe Users <span> to" %} {{list.fqdn_listname}}</span>
{% endblock %}
{% block header %}
<div class="mm_box mm_clear">
<div class="mm_boxHeader">{% trans "Form" %}</div>
<p>{% blocktrans %}Here you can mass subscribe users to the list <em>{{ list.fqdn_listname }}</em>. To do so, please enter one name on each row.{% endblocktrans %}</p>
<form action="{% url mass_subscribe list.fqdn_listname %}" method="post" class="mass_subscribe">
{{ form.as_div }}
<div class="field">
<button type="submit">{% trans "Subscribe users" %}</button>
</div>
</form>
</div>
{% endblock %}
{% extends extend_template %}
{% load i18n %}
{% block heading %}
{{list.list_name}} <span>{{list.real_name}}</span>
{% endblock %}
{% block header %}
{% if visible_section %}
<div class="mm_box mm_clear">
<div class="mm_boxHeader">{% trans "List Settings " %}{{ fqdn_listname }}</div>
<p>{% trans "This page visualizes all list settings. This gives an idea of what the settings page could look like." %}</p>
</div>
<form action="{% url list_settings fqdn_listname=list.fqdn_listname visible_section=visible_section visible_option=visible_option %}" method="post" class="list_settings">
{{ form.as_div }}
<div class="field">
<button type="submit">{%trans "Save changes" %}</button>
</div>
</form>
{% endif %}
{% endblock %}
{% block smallBoxLeft %}
{% for section in form_sections %}
<div class="mm_box mm_smallBox {% cycle 'mm_clear' '' %}">
<div class="mm_boxHeader"><a href="{% url list_settings fqdn_listname=list.fqdn_listname visible_section=section.0 visible_option=None %}">{{section.0}}</a></div>
{{section.1}}
</div>
{% endfor %}
{% endblock %}
{% block actionButtonsList %}
<ul class="mm_actionButtons">
<li class="mm_list_summary"><a href="{% url list_summary list.fqdn_listname %}">{% trans "List Summary" %}</a></li>
<li class="mm_delete_list"><a href="{% url list_delete list.fqdn_listname %}">{% trans "Delete List" %}</a></li>
<li class="mm_mass_subscribe"><a href="{% url mass_subscribe list.fqdn_listname %}">{% trans "Mass Subscribe to List" %}</a></li>
</ul>
{% endblock %}
{% extends extend_template %}
{% load i18n %}
{% block heading %}
{{list.list_name}} <span>{{list.real_name}}</span>
{% endblock %}
{% block header %}
<!--<div class="mm_box">
<div class="mm_boxHeader">{% trans "Subscriptions" %}</div>-->
{% if form_subscribe %}
<form action="{%url list_subscriptions fqdn_listname=list.fqdn_listname option='subscribe' %}" method="post" class="subscribe mm_clear" name="subscribe">
{{ form_subscribe.as_div }}
<div class="field">
<button type="submit">{% trans "Subscribe" %}</button>
</div>
</form>
{% endif %}
{% if form_unsubscribe %}
<form action="{% url list_subscriptions fqdn_listname=list.fqdn_listname option='unsubscribe' %}" method="post" class="unsubscribe mm_clear" name="unsubscribe">
{{ form_unsubscribe.as_div }}
<div class="field">
<button type="submit">{% trans "Unsubscribe" %}</button>
</div>
</form>
{% endif %}
<!--</div>-->
{% endblock %}
{% extends "mailman-django/base.html" %}
{% load i18n %}
{% block heading %}
{{list.list_name}} <span>{{list.real_name}}</span>
{% endblock %}
{% block header %}
<div class="mm_box mm_clear">
<div class="mm_boxHeader">{% trans "About" %}</div>
{{list.settings.description}}
</div>
{% endblock %}
{% block actionButtonsList %}
<ul class="mm_actionButtons">
<li class="mm_subscribe"><a href="{% url list_subscriptions fqdn_listname=list.fqdn_listname option='subscribe' %}">{% trans "Subscribe" %}</a></li>
<li class="mm_archives"><a href="#archives">{% trans "View Archives" %}</a></li>
<li class="mm_options"><a href="{% url list_settings fqdn_listname=list.fqdn_listname %}">{% trans "Edit Options" %}</a></li>
<li class="mm_unsubscribe"><a href="{% url list_subscriptions fqdn_listname=list.fqdn_listname option='unsubscribe' %}">{% trans "Unsubscribe" %}</a></li>
{% if user_is_subscribed %}
<li class="mm_membership"><a href="{% url membership_settings fqdn_listname=list.fqdn_listname %}">{% trans "My Membership" %}</a></li>
{% endif %}
</ul>
{% endblock %}
{% block smallBoxLeft %}
<div class="mm_box mm_smallBox mm_clear">
<div class="mm_boxHeader">{% trans "Contact" %}</div>
<a href="#contactowner">{% trans "Contact Owner" %} #TODO</a>
</div>
<div class="mm_box mm_smallBox">
<div class="mm_boxHeader">{% trans "Other Lists" %}</div>
<a href="{% url list_index %}">{% trans "View overview of all mailing lists" %}</a>
</div>
{% endblock %}
Metadata-Version: 1.0
Name: mailman-django
Version: 0.1
Name: mailmanweb
Version: 0.0.1
Summary: A web user interface for GNU Mailman
Home-page: https://code.launchpad.net/~flo-fuchs/mailmanwebgsoc2011/transition
Author: The Mailman GSOC Coders
Author-email: flo.fuchs@gmail.com
License: GPLv3
Description: =======================================
mailman-django - web ui for GNU Mailman
=======================================
Description: ===================================
mailmanweb - web ui for GNU Mailman
===================================
Copyright (C) 1998-2010 by the Free Software Foundation, Inc.
The ``mailman-django`` Django app provides a web user interface to
The ``mailmanweb`` Django app provides a web user interface to
access GNU Mailman.
``mailman-django`` is free software: you can redistribute it and/or
``mailmanweb`` is free software: you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3 of the License.
``mailman-django`` is distributed in the hope that it will be useful,
``mailmanweb`` 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 Lesser
General Public License for more details.
......@@ -31,7 +31,7 @@ Description: =======================================
Requirements
============
``mailman-django`` requires Python 2.6 or newer and ``mailman.client``,
``mailmanweb`` requires Python 2.6 or newer and ``mailman.client``,
the official Python bindings for GNU Mailman.
......
setup.py
src/mailmanweb/__init__.py
src/mailmanweb/context_processors.py
src/mailmanweb/fieldset_forms.py
src/mailmanweb/forms.py
src/mailmanweb/models.py
src/mailmanweb/urls.py
src/mailmanweb/views.py
src/mailmanweb.egg-info/PKG-INFO
src/mailmanweb.egg-info/SOURCES.txt
src/mailmanweb.egg-info/dependency_links.txt
src/mailmanweb.egg-info/top_level.txt
src/mailmanweb/auth/__init__.py
src/mailmanweb/auth/restbackend.py
src/mailmanweb/tests/__init__.py
src/mailmanweb/tests/setup.py
src/mailmanweb/tests/tests.py
\ No newline at end of file
version = (0, 0, 1)
__version__ = '.'.join(map(str, version))
......@@ -15,9 +15,9 @@ def mailmanweb(request):
"""
# extend_template (no page header/footer when requested via AJAX)
if request.is_ajax():
extend_template = "mailman-django/base_ajax.html"
extend_template = "mailmanweb/base_ajax.html"
else:
extend_template = "mailman-django/base.html"
extend_template = "mailmanweb/base.html"
return {
'MAILMAN_THEME': settings.MAILMAN_THEME,
......
......@@ -72,17 +72,17 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/mailman_django.qhcp"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/mailmanweb.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/mailman_django.qhc"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/mailmanweb.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/mailman_django"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/mailman_django"
@echo "# mkdir -p $$HOME/.local/share/devhelp/mailmanweb"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/mailmanweb"
@echo "# devhelp"
epub:
......