diff --git a/fieldset_forms.py b/fieldset_forms.py index 3ee46b6..31af7d3 100644 --- a/fieldset_forms.py +++ b/fieldset_forms.py @@ -1,4 +1,21 @@ # -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + from django.forms import Form from django.utils import safestring from django.forms.forms import BoundField diff --git a/forms.py b/forms.py index 1b557e9..033de36 100644 --- a/forms.py +++ b/forms.py @@ -1,4 +1,21 @@ # -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + from django import forms from django.utils.translation import gettext as _ from fieldset_forms import FieldsetForm diff --git a/mockdata.py b/mockdata.py index dbed039..29337a0 100644 --- a/mockdata.py +++ b/mockdata.py @@ -1,4 +1,20 @@ # -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . def check_http_method(fn): """ diff --git a/models.py b/models.py index 71a8362..87daa02 100644 --- a/models.py +++ b/models.py @@ -1,3 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + from django.db import models # Create your models here. diff --git a/templates/mailman-django/lists/login.html b/templates/mailman-django/lists/login.html deleted file mode 100644 index 4b8d12a..0000000 --- a/templates/mailman-django/lists/login.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "mailman-django/base.html" %} -{% load i18n %} - -{% block content %} - -

{% trans "Login Required" %}

- -

You are required to login to continue. Please provide a valid email address and a password.

- -{% if message %} -

{{ message }}

-{% endif %} - - - -{% endblock %} diff --git a/templates/mailman-django/lists/user_settings.html b/templates/mailman-django/lists/user_settings.html deleted file mode 100644 index f6ed9b3..0000000 --- a/templates/mailman-django/lists/user_settings.html +++ /dev/null @@ -1,45 +0,0 @@ -{% extends "mailman-django/base.html" %} -{% load i18n %} - - -{% block content %} -{% ifequal tab "membership"%} -

{% trans "Membership Settings" %} {% if listname %}{% trans "for"%}{% endif %} {{ listname }}

-{% else %} -

{% trans "User Settings" %}

-{% endifequal %} -
- - - -

Logout

- -

This page visualizes the user/membership settings. Currently the page is not connected to the rest server so the settings will not be saved when changing them. However, this gives an idea of what the settings page could look like.

- - -{% if message %} -

{{ message }}

-{% endif %} - - -{% if form %} -
-
    - {{ form.as_ul }} -
  • - -
  • -
-
-{% else %} - -{% endif %} - -{% endblock %} \ No newline at end of file diff --git a/tests.py b/tests.py index 2247054..ad054d8 100644 --- a/tests.py +++ b/tests.py @@ -1,3 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + """ This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". diff --git a/tests/__init__.py b/tests/__init__.py index d2882f3..77d25a0 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,21 @@ # -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + import tests __test__ = { "Doctest": tests, diff --git a/tests/tests.py b/tests/tests.py index acd232a..3d904b6 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -1,4 +1,21 @@ # -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + """ =================================================================== Test suite for the Mailman UI. diff --git a/urls.py b/urls.py index 2d9671e..aaaac1e 100644 --- a/urls.py +++ b/urls.py @@ -1,4 +1,21 @@ # -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + from django.conf.urls.defaults import * from django.conf import settings diff --git a/views.py b/views.py index 199714b..2605991 100644 --- a/views.py +++ b/views.py @@ -1,4 +1,21 @@ # -*- coding: utf-8 -*- +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman 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. +# +# GNU Mailman 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 +# GNU Mailman. If not, see . + from django.http import HttpResponse, HttpResponseRedirect from django.template import Context, loader from django.shortcuts import render_to_response @@ -32,7 +49,7 @@ return fn(*args, **kwargs) except: pass - template = 'mailman-django/lists/login.html' + template = 'mailman-django/login.html' # Authenticate the user # This is just a mockup since the authenticate functionality in # the rest server is still missing. @@ -277,7 +294,7 @@ @login_required def user_settings(request, member = None, tab = "user", - template = 'mailman-django/lists/user_settings.html'): + template = 'mailman-django/user_settings.html'): """ Change the user or the membership settings. The user must be logged in to be allowed to change any settings.