summaryrefslogtreecommitdiff
path: root/django-nova/src/django_nova/urls/admin_project.py
diff options
context:
space:
mode:
Diffstat (limited to 'django-nova/src/django_nova/urls/admin_project.py')
-rw-r--r--django-nova/src/django_nova/urls/admin_project.py55
1 files changed, 55 insertions, 0 deletions
diff --git a/django-nova/src/django_nova/urls/admin_project.py b/django-nova/src/django_nova/urls/admin_project.py
new file mode 100644
index 00000000..c32e2adb
--- /dev/null
+++ b/django-nova/src/django_nova/urls/admin_project.py
@@ -0,0 +1,55 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2010 United States Government as represented by the
+# Administrator of the National Aeronautics and Space Administration.
+# All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+"""
+URL patterns for managing Nova projects through the Django admin interface.
+"""
+
+from django.conf.urls.defaults import *
+
+
+#TODO(devcamcar): Standardize url names admin_project_*.
+
+urlpatterns = patterns('',
+ url(r'^$',
+ 'django_nova.views.admin.projects_list',
+ name='admin_projects'),
+ url(r'^add/$',
+ 'django_nova.views.admin.add_project',
+ name='add_project'),
+ url(r'^(?P<project_name>[^/]+)/$',
+ 'django_nova.views.admin.project_view',
+ name='admin_project'),
+ url(r'^(?P<project_name>[^/]+)/user/(?P<project_user>[^/]+)/delete/',
+ 'django_nova.views.admin.delete_project_user',
+ name='admin_project_delete_user'),
+ url(r'^(?P<project_name>[^/]+)/delete/$',
+ 'django_nova.views.admin.delete_project',
+ name='delete_project'),
+ url(r'^(?P<project_name>[^/]+)/user/add/$',
+ 'django_nova.views.admin.add_project_user',
+ name='add_project_user'),
+ url(r'^(?P<project_name>[^/]+)/user/(?P<project_user>[^/]+)/$',
+ 'django_nova.views.admin.project_user',
+ name='project_user'),
+ url(r'^(?P<project_id>[^/]+)/sendcredentials/$',
+ 'django_nova.views.admin.project_sendcredentials',
+ name='admin_project_sendcredentials'),
+ url(r'^(?P<project_id>[^/]+)/start_vpn/$',
+ 'django_nova.views.admin.project_start_vpn',
+ name='admin_project_start_vpn'),
+)