1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
3
# Copyright 2010 United States Government as represented by the
4
# Administrator of the National Aeronautics and Space Administration.
7
# Licensed under the Apache License, Version 2.0 (the "License"); you may
8
# not use this file except in compliance with the License. You may obtain
9
# a copy of the License at
11
# http://www.apache.org/licenses/LICENSE-2.0
13
# Unless required by applicable law or agreed to in writing, software
14
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
# License for the specific language governing permissions and limitations
19
URL patterns for managing Nova projects through the Django admin interface.
22
from django.conf.urls.defaults import *
25
#TODO(devcamcar): Standardize url names admin_project_*.
27
urlpatterns = patterns('',
29
'django_nova.views.admin.projects_list',
30
name='admin_projects'),
32
'django_nova.views.admin.add_project',
34
url(r'^(?P<project_name>[^/]+)/$',
35
'django_nova.views.admin.project_view',
36
name='admin_project'),
37
url(r'^(?P<project_name>[^/]+)/user/(?P<project_user>[^/]+)/delete/',
38
'django_nova.views.admin.delete_project_user',
39
name='admin_project_delete_user'),
40
url(r'^(?P<project_name>[^/]+)/delete/$',
41
'django_nova.views.admin.delete_project',
42
name='delete_project'),
43
url(r'^(?P<project_name>[^/]+)/user/add/$',
44
'django_nova.views.admin.add_project_user',
45
name='add_project_user'),
46
url(r'^(?P<project_name>[^/]+)/user/(?P<project_user>[^/]+)/$',
47
'django_nova.views.admin.project_user',
49
url(r'^(?P<project_id>[^/]+)/sendcredentials/$',
50
'django_nova.views.admin.project_sendcredentials',
51
name='admin_project_sendcredentials'),
52
url(r'^(?P<project_id>[^/]+)/start_vpn/$',
53
'django_nova.views.admin.project_start_vpn',
54
name='admin_project_start_vpn'),