2015-01-24 16:23:17 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for hosting package related views.
|
|
|
|
|
|
|
|
"""
|
2015-01-20 00:51:05 +01:00
|
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
2015-01-24 16:23:17 +01:00
|
|
|
from .views import (
|
2015-01-25 15:15:39 +01:00
|
|
|
AddHostingOption,
|
2015-01-24 23:34:15 +01:00
|
|
|
AllCustomerHostingPackageList,
|
|
|
|
CreateCustomerHostingPackage,
|
2015-01-25 14:04:32 +01:00
|
|
|
CreateHostingPackage,
|
2015-01-24 16:23:17 +01:00
|
|
|
CustomerHostingPackageDetails,
|
2015-01-25 14:04:32 +01:00
|
|
|
HostingOptionChoices,
|
2015-01-24 16:23:17 +01:00
|
|
|
)
|
2015-01-20 00:51:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2015-01-24 23:34:15 +01:00
|
|
|
url(r'^create$', CreateHostingPackage.as_view(),
|
2015-01-20 00:51:05 +01:00
|
|
|
name='create_hosting_package'),
|
2015-01-24 23:34:15 +01:00
|
|
|
url(r'^(?P<user>[\w0-9@.+-_]+)/create$',
|
|
|
|
CreateCustomerHostingPackage.as_view(),
|
|
|
|
name='create_customer_hosting_package'),
|
2015-01-24 16:23:17 +01:00
|
|
|
url(r'^(?P<user>[\w0-9@.+-_]+)/hostingpackage/(?P<pk>\d+)/$',
|
|
|
|
CustomerHostingPackageDetails.as_view(),
|
|
|
|
name='hosting_package_details'),
|
2015-01-24 23:34:15 +01:00
|
|
|
url(r'^allpackages/',
|
2015-01-25 15:15:39 +01:00
|
|
|
AllCustomerHostingPackageList.as_view(), name='all_hosting_packages'),
|
2015-01-25 14:04:32 +01:00
|
|
|
url(r'^(?P<pk>\d+)/option-choices$',
|
2015-01-25 15:15:39 +01:00
|
|
|
HostingOptionChoices.as_view(), name='hosting_option_choices'),
|
|
|
|
url(r'^(?P<package>\d+)/add-option/(?P<type>\w+)/(?P<optionid>\d+)$',
|
|
|
|
AddHostingOption.as_view(), name='add_hosting_option'),
|
2015-01-20 00:51:05 +01:00
|
|
|
)
|