Jan Dittberner
1d69bb22dc
- implement managemails.forms.multiple_email_validator - implement managemails.forms.AddMailAddressForm - implement managemails.views.AddMailAddress - add URL pattern 'add_mailaddress' to managemails.urls - add template managemails/mailaddress_create.html - add changelog entry
24 lines
695 B
Python
24 lines
695 B
Python
"""
|
|
This module defines the URL patterns for mailbox and mail address related
|
|
views.
|
|
|
|
"""
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
from .views import (
|
|
AddMailAddress,
|
|
ChangeMailboxPassword,
|
|
CreateMailbox,
|
|
)
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^(?P<package>\d+)/mailbox/create$',
|
|
CreateMailbox.as_view(), name='create_mailbox'),
|
|
url(r'^(?P<package>\d+)/mailbox/(?P<slug>[\w0-9]+)/setpassword$',
|
|
ChangeMailboxPassword.as_view(), name='change_mailbox_password'),
|
|
url(r'^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/create$',
|
|
AddMailAddress.as_view(), name='add_mailaddress'),
|
|
)
|