~devcamcar/django-nova/improve_error_handling

« back to all changes in this revision

Viewing changes to src/django_nova/urls/admin_project.py

  • Committer: Devin Carlen
  • Date: 2011-01-12 20:02:06 UTC
  • Revision ID: devin.carlen@gmail.com-20110112200206-jiap3azuz41ouk5i
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
 
2
 
 
3
# Copyright 2010 United States Government as represented by the
 
4
# Administrator of the National Aeronautics and Space Administration.
 
5
# All Rights Reserved.
 
6
#
 
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
 
10
#
 
11
#         http://www.apache.org/licenses/LICENSE-2.0
 
12
#
 
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
 
17
#    under the License.
 
18
"""
 
19
URL patterns for managing Nova projects through the Django admin interface.
 
20
"""
 
21
 
 
22
from django.conf.urls.defaults import *
 
23
 
 
24
 
 
25
#TODO(devcamcar): Standardize url names admin_project_*.
 
26
 
 
27
urlpatterns = patterns('',
 
28
    url(r'^$',
 
29
        'django_nova.views.admin.projects_list',
 
30
        name='admin_projects'),
 
31
    url(r'^add/$',
 
32
        'django_nova.views.admin.add_project',
 
33
        name='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',
 
48
        name='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'),
 
55
)