Commit be2e0df0 authored by J08nY's avatar J08nY

qa.

parent 0256be0d
......@@ -3,7 +3,8 @@ from setuptools import find_packages, setup
setup(
name='django_pgpmailman',
version='0.1',
description='A web interface extension for the GNU Mailman apps Postorius and HyperKitty.',
description='A web interface extension for the GNU Mailman apps '
'Postorius and HyperKitty.',
long_description="""""",
author='Jan Jancar',
author_email='johny@neuromancer.sk',
......
......@@ -227,7 +227,8 @@ class ListCreateForm(forms.Form):
required=False)
list_style = forms.ChoiceField()
def __init__(self, domain_choices=None, style_choices=None, *args, **kwargs):
def __init__(self, domain_choices=None, style_choices=None,
*args, **kwargs):
super(ListCreateForm, self).__init__(*args, **kwargs)
self.fields['mail_host'] = forms.ChoiceField(
widget=forms.Select(),
......
......@@ -111,9 +111,10 @@ class ListKey(View):
raise Http404
key_file = ContentFile(str(key))
response = HttpResponse(key_file, 'application/pgp-keys')
response['Content-Length'] = key_file.size
response[
'Content-Disposition'] = 'attachment; filename="%s.asc"' % self.pgp_list.list_id
length = key_file.size
disposition = 'attachment; filename="%s.asc"' % self.pgp_list.list_id
response['Content-Length'] = length
response['Content-Disposition'] = disposition
return response
......
......@@ -42,15 +42,3 @@ class UserSummaryView(TemplateView):
pass
data['addresses'] = addresses
return data
#
# class UserSummaryView(FormView):
# template_name = 'django_pgpmailman/user/summary.html'
#
# @method_decorator(login_required)
# @user_class_view
# def dispatch(self, request, *args, **kwargs):
# return super(UserSummaryView, self).dispatch(request, *args, **kwargs)
#
# def get_form_class(self):
# return formset_factory(AddressForm, )
......@@ -7,3 +7,6 @@ deps =
flake8>3.0
commands =
flake8 {posargs}
[flake8]
exclude = suite_project,single_project,.tox,.git
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