Commit b3bf81d1 authored by Florian Fuchs's avatar Florian Fuchs

- added previous changes to news file

- removed old NEWS file in favor of src/postorius/docs/news.rst
- removed dev_setup directory in favor of lp:~mailman-coders/postorius/postorius_standalone
parent 8ccbd995
==================================
Postorius - web ui for GNU Mailman
==================================
Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
The Postorius Django app provides a web user interface to
access GNU Mailman.
Postorius 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.
Postorius 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.
You should have received a copy of the GNU Lesser General Public License
along with Postorius. If not, see <http://www.gnu.org/licenses/>.
1.0 alpha 2
===========
(2012-XX-XX)
* dev setup fix for Django 1.4 contributed by Rohan Jain
* missing csrf tokens in templates contributed by Richard Wackerbarth (LP: 996658)
* moderation: fixed typo in success message call
1.0 alpha 1 -- "Space Farm"
===========================
(2012-03-23)
Many thanks go out to Anna Senarclens de Grancy and Benedict Stein for
developing the initial versions of this Django app during the Google Summer of
Code 2010 and 2011.
* add/remove/edit mailing lists
* edit list settings
* show all mailing lists on server
* subscribe/unsubscribe/mass subscribe mailing lists
* add/remove domains
* show basic list info and metrics
* login using django user account or using BrowserID
* show basic user profile
* accept/discard/reject/defer messages
* Implementation of Django Messages contributed by Benedict Stein (LP: #920084)
* Dependency check in setup.py contributed by Daniel Mizyrycki
* Proper processing of acceptable aliases in list settings form contributed by
Daniel Mizyrycki
......@@ -30,6 +30,14 @@ The minimum Django version is 1.3.
Postorius needs a running version of GNU Mailman version 3.
NEWS/Changelog
==============
News and the changelog can be found in the package documentation:
src/postorius/doc/news.rst
Installation
============
......
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
#
# This file is part of Postorius.
#
# Postorius 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.
#
# Postorius 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
# Postorius. If not, see <http://www.gnu.org/licenses/>.
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
sys.exit(1)
if __name__ == "__main__":
execute_manager(settings)
#-*- coding: utf-8 -*-
# Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
#
# This file is part of Postorius.
#
# Postorius 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.
#
# Postorius 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
# Postorius. If not, see <http://www.gnu.org/licenses/>.
"""Import App Directory to syspath"""
import os
import sys
PROJECT_ROOT = os.path.dirname(__file__)
sys.path.insert(0, os.path.split(PROJECT_ROOT)[0])
"""Django settings for postorius project."""
import os.path
# Mailman API credentials
REST_SERVER = 'http://localhost:8001'
API_USER = 'restadmin'
API_PASS = 'restpass'
# CSS theme for mailman-django application
MAILMAN_THEME = "default"
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
#('Admin', 'webmaster@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mmtest.db'
}
}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# Absolute path to the directory that holds static files.
STATIC_ROOT = os.path.join(PROJECT_PATH, 'static/')
# Absolute path to the directory that holds media files.
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media/')
# URL that handles the media served from STATIC_ROOT. Make sure to use a
STATIC_URL = '/static/'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
MEDIA_URL = '/media/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/static/admin/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = '$!-7^wl#wiifjbh)5@f7ji%x!vp7s1vzbvwt26hxv$idixq0u0'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'social_auth.backends.OpenIDBackend',
'social_auth.backends.browserid.BrowserIDBackend'
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.static",
"django.core.context_processors.csrf",
"django.contrib.messages.context_processors.messages",
"postorius.context_processors.postorius",
'social_auth.context_processors.social_auth_by_name_backends',
'social_auth.context_processors.social_auth_backends',
'social_auth.context_processors.social_auth_by_type_backends',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)
# Set `postorius.urls` as main url config if postorius
# is the only app you want to serve.
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = (
# uncomment if you like to overwrite the default templates:
# os.path.join(PROJECT_PATH, "/templates/postorius"),
)
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.messages',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.staticfiles',
'postorius',
'social_auth',
)
LOGIN_URL = '/postorius/accounts/login/'
LOGIN_REDIRECT_URL = '/postorius/'
LOGIN_ERROR_URL = '/postorius/accounts/login/'
SOCIAL_AUTH_COMPLETE_URL_NAME = 'socialauth_complete'
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'socialauth_associate_complete'
SOCIAL_AUTH_DEFAULT_USERNAME = 'new_social_auth_user'
SOCIAL_AUTH_UUID_LENGTH = 16
try:
from settings_local import *
except ImportError:
pass
# -*- coding: utf-8 -*-
# Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
#
# This file is part of Postorius.
#
# Postorius 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.
#
# Postorius 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
# Postorius. If not, see <http://www.gnu.org/licenses/>.
import postorius
from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
# Import mailman urls and set urlpatterns if you want to hook
# mailman_django into an existing django site.
# Otherwise set ROOT_URLCONF in settings.py to
# `mailman_django.urls`.
# from mailman_django import urls as mailman_urls
urlpatterns = patterns('',
url(r'^$', 'postorius.views.list_index'),
(r'^postorius/', include('postorius.urls')),
url(r'', include('social_auth.urls')),
)
====
News
====
================
News / Changelog
================
Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
......@@ -27,6 +27,7 @@ along with postorius. If not, see <http://www.gnu.org/licenses/>.
* dev setup fix for Django 1.4 contributed by Rohan Jain
* missing csrf tokens in templates contributed by Richard Wackerbarth (LP: 996658)
* moderation: fixed typo in success message call
* installation documentation for Apache/mod_wsgi
1.0 alpha 1 -- "Space Farm"
......
Using the Django App - Developers Resource
==========================================
Using the Django App - Developers Resource (outdated)
=====================================================
.. warning::
This user guide is outdated and needs to be updated.
......
......@@ -26,7 +26,7 @@
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Postorius 1.0a2 documentation" href="#" />
<link rel="next" title="News" href="news.html" />
<link rel="next" title="News / Changelog" href="news.html" />
</head>
<body>
<div class="related">
......@@ -39,7 +39,7 @@
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="news.html" title="News"
<a href="news.html" title="News / Changelog"
accesskey="N">next</a> |</li>
<li><a href="#">Postorius 1.0a2 documentation</a> &raquo;</li>
</ul>
......@@ -55,9 +55,9 @@
<p>Contents:</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="news.html">News</a></li>
<li class="toctree-l1"><a class="reference internal" href="news.html">News / Changelog</a></li>
<li class="toctree-l1"><a class="reference internal" href="setup.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="using.html">Using the Django App - Developers Resource</a></li>
<li class="toctree-l1"><a class="reference internal" href="using.html">Using the Django App - Developers Resource (outdated)</a></li>
</ul>
</div>
</div>
......@@ -70,7 +70,7 @@
<div class="sphinxsidebarwrapper">
<h4>Next topic</h4>
<p class="topless"><a href="news.html"
title="next chapter">News</a></p>
title="next chapter">News / Changelog</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/index.txt"
......@@ -103,7 +103,7 @@
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="news.html" title="News"
<a href="news.html" title="News / Changelog"
>next</a> |</li>
<li><a href="#">Postorius 1.0a2 documentation</a> &raquo;</li>
</ul>
......
......@@ -8,7 +8,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>News &mdash; Postorius 1.0a2 documentation</title>
<title>News / Changelog &mdash; Postorius 1.0a2 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
......@@ -54,8 +54,8 @@
<div class="bodywrapper">
<div class="body">
<div class="section" id="news">
<h1>News<a class="headerlink" href="#news" title="Permalink to this headline"></a></h1>
<div class="section" id="news-changelog">
<h1>News / Changelog<a class="headerlink" href="#news-changelog" title="Permalink to this headline"></a></h1>
<p>Copyright (C) 1998-2012 by the Free Software Foundation, Inc.</p>
<p>The postorius Django app provides a web user interface to
access GNU Mailman.</p>
......@@ -75,6 +75,7 @@ along with postorius. If not, see &lt;<a class="reference external" href="http:/
<li>dev setup fix for Django 1.4 contributed by Rohan Jain</li>
<li>missing csrf tokens in templates contributed by Richard Wackerbarth (LP: 996658)</li>
<li>moderation: fixed typo in success message call</li>
<li>installation documentation for Apache/mod_wsgi</li>
</ul>
</div>
<div class="section" id="alpha-1-space-farm">
......@@ -109,7 +110,7 @@ Daniel Mizyrycki</li>
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">News</a><ul>
<li><a class="reference internal" href="#">News / Changelog</a><ul>
<li><a class="reference internal" href="#alpha-2">1.0 alpha 2</a></li>
<li><a class="reference internal" href="#alpha-1-space-farm">1.0 alpha 1 &#8211; &#8220;Space Farm&#8221;</a></li>
</ul>
......
......@@ -8,7 +8,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Using the Django App - Developers Resource &mdash; Postorius 1.0a2 documentation</title>
<title>Using the Django App - Developers Resource (outdated) &mdash; Postorius 1.0a2 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
......@@ -50,8 +50,8 @@
<div class="bodywrapper">
<div class="body">
<div class="section" id="using-the-django-app-developers-resource">
<h1>Using the Django App - Developers Resource<a class="headerlink" href="#using-the-django-app-developers-resource" title="Permalink to this headline"></a></h1>
<div class="section" id="using-the-django-app-developers-resource-outdated">
<h1>Using the Django App - Developers Resource (outdated)<a class="headerlink" href="#using-the-django-app-developers-resource-outdated" title="Permalink to this headline"></a></h1>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">This user guide is outdated and needs to be updated.</p>
......@@ -343,7 +343,7 @@ We start by checking that the list is really there (for reference).</p>
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Using the Django App - Developers Resource</a><ul>
<li><a class="reference internal" href="#">Using the Django App - Developers Resource (outdated)</a><ul>
<li><a class="reference internal" href="#tests-login-and-permissions">Tests Login and Permissions</a><ul>
<li><a class="reference internal" href="#list-index">List index</a></li>
<li><a class="reference internal" href="#login-required">Login Required</a></li>
......
====
News
====
================
News / Changelog
================
Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
......@@ -27,6 +27,7 @@ along with postorius. If not, see <http://www.gnu.org/licenses/>.
* dev setup fix for Django 1.4 contributed by Rohan Jain
* missing csrf tokens in templates contributed by Richard Wackerbarth (LP: 996658)
* moderation: fixed typo in success message call
* installation documentation for Apache/mod_wsgi
1.0 alpha 1 -- "Space Farm"
......
Using the Django App - Developers Resource
==========================================
Using the Django App - Developers Resource (outdated)
=====================================================
.. warning::
This user guide is outdated and needs to be updated.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment