2015-01-26 12:06:03 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for user database views.
|
|
|
|
|
|
|
|
"""
|
|
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
|
|
|
from .views import (
|
|
|
|
AddUserDatabase,
|
2015-01-26 12:39:42 +01:00
|
|
|
ChangeDatabaseUserPassword,
|
2015-01-26 13:39:35 +01:00
|
|
|
DeleteUserDatabase,
|
2015-01-26 12:06:03 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
|
|
|
url(r'^(?P<package>\d+)/create$',
|
|
|
|
AddUserDatabase.as_view(), name='add_userdatabase'),
|
2015-01-26 12:39:42 +01:00
|
|
|
url(r'^(?P<package>\d+)/(?P<slug>[\w0-9]+)/setpassword',
|
|
|
|
ChangeDatabaseUserPassword.as_view(), name='change_dbuser_password'),
|
2015-01-26 13:39:35 +01:00
|
|
|
url(r'^(?P<package>\d+)/(?P<slug>[\w0-9]+)/delete',
|
|
|
|
DeleteUserDatabase.as_view(), name='delete_userdatabase'),
|
2015-01-26 12:06:03 +01:00
|
|
|
)
|