Skip to content

Commit

Permalink
s/mailview/mailviews/
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Sep 27, 2012
1 parent adc8387 commit 7a5c05a
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lint:
pip install --use-mirrors flake8
flake8 ./mailview
flake8 ./mailviews

clean:
find . -name *.pyc -delete
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
django-mailview
===============
django-mailviews
================

Class-based email views for the Django framework, including a message previewer.

Expand All @@ -14,15 +14,15 @@ the latest stable version will be installed.)

All tests will automatically be run using the Django test runner when you run
the tests for your own projects if you use ``python manage.py test`` and
``mailview`` is within your ``settings.INSTALLED_APPS``.
``mailviews`` is within your ``settings.INSTALLED_APPS``.

To run tests against the entire build matrix, install
`tox <http://pypi.python.org/pypi/tox>`_ and run ``tox`` in the root of the
repository.

To view an example message preview, you can start a test server by running::

$ python mailview/tests/manage.py runserver
$ python mailviews/tests/manage.py runserver

and visiting http://127.0.0.1:8000/ for a plain text message preview, and
http://127.0.0.1:8000/?html for an HTML message preview.
File renamed without changes.
2 changes: 1 addition & 1 deletion mailview/messages.py → mailviews/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.template import Context
from django.template.loader import get_template, select_template

from mailview.utils import unescape
from mailviews.utils import unescape


class EmailMessageView(object):
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions mailview/tests/__init__.py → mailviews/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
settings.configure(
DEBUG=True,
INSTALLED_APPS=(
'mailview',
'mailviews',
),
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
},
},
ROOT_URLCONF='mailview.tests.urls',
ROOT_URLCONF='mailviews.tests.urls',
)


from mailview.tests.tests import * # NOQA
from mailviews.tests.tests import * # NOQA


def run():
import sys
from django.test.utils import get_runner

runner = get_runner(settings)()
failures = runner.run_tests(('mailview',))
failures = runner.run_tests(('mailviews',))
sys.exit(failures)
2 changes: 1 addition & 1 deletion mailview/tests/manage.py → mailviews/tests/manage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from django.core.management import execute_manager

from mailview.tests import settings
from mailviews.tests import settings

if __name__ == "__main__":
execute_manager(settings)
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions mailview/tests/tests.py → mailviews/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
from django.test import TestCase
from django.template import Context, Template, TemplateDoesNotExist

from mailview.messages import (TemplatedEmailMessageView,
from mailviews.messages import (TemplatedEmailMessageView,
TemplatedHTMLEmailMessageView)


try:
from django.test.utils import override_settings
except ImportError:
from mailview.tests.utils import override_settings
from mailviews.tests.utils import override_settings


using_test_templates = override_settings(
Expand Down
2 changes: 1 addition & 1 deletion mailview/tests/urls.py → mailviews/tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.conf.urls.defaults import patterns, url

from mailview.tests.views import preview
from mailviews.tests.views import preview


urlpatterns = patterns('',
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions mailview/tests/views.py → mailviews/tests/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from django.contrib.webdesign.lorem_ipsum import paragraphs, sentence
from django.template import Context, Template

from mailview.messages import (TemplatedEmailMessageView,
from mailviews.messages import (TemplatedEmailMessageView,
TemplatedHTMLEmailMessageView)
from mailview.views import render_message_to_response
from mailviews.views import render_message_to_response


def preview(request):
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion mailview/views.py → mailviews/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def render_message_to_response(request, message):
except StopIteration:
pass

return direct_to_template(request, 'mailview/message.html', extra_context=context)
return direct_to_template(request, 'mailviews/message.html', extra_context=context)
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@


def get_version():
from mailview import __version__
from mailviews import __version__
return '.'.join(map(str, __version__))

try:
version = get_version()
except ImportError:
sys.path.append(os.path.join(os.path.dirname(__file__), 'mailview'))
sys.path.append(os.path.join(os.path.dirname(__file__), 'mailviews'))
version = get_version()


install_requires = ['django']

setup(name='django-mailview',
setup(name='django-mailviews',
version=version,
url='http://github.com/disqus/django-mailview/',
url='http://github.com/disqus/django-mailviews/',
author='ted kaemming',
author_email='[email protected]',
description='Class-based mail views for Django',
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
test_suite='mailview.tests.run',
test_suite='mailviews.tests.run',
zip_safe=False,
)

0 comments on commit 7a5c05a

Please sign in to comment.