summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/urls.py
blob: 6ff12c631cfe561ef7915bfb42925bd9a856f06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django.conf.urls.defaults import *

urlpatterns = patterns('Hostbase.hostbase.views',
    # Example:
    # (r'^djangobase/', include('djangobase.apps.foo.urls.foo')),

    # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^hostbase/$', 'search'),
    (r'^hostbase/(?P<host_id>\d+)/$', 'look'),
    (r'^hostbase/(?P<host_id>\d+)/edit', 'edit'),
    (r'^hostbase/(?P<host_id>\d+)/remove', 'remove'),
    (r'^hostbase/(?P<host_id>\d+)/(?P<item>\D+)/(?P<item_id>\d+)/confirm', 'confirm'),
    (r'^hostbase/(?P<host_id>\d+)/(?P<item>\D+)/(?P<item_id>\d+)/(?P<name_id>\d+)/confirm', 'confirm'),
    (r'^hostbase/(?P<host_id>\d+)/dns/edit', 'dnsedit'),
    (r'^hostbase/(?P<host_id>\d+)/dns', 'dns'),
    (r'^hostbase/new', 'new'),
    (r'^hostbase/hostinfo', 'hostinfo'),
    (r'^hostbase/zones/$', 'zones'),
    (r'^hostbase/zones/(?P<zone_id>\d+)/$', 'zoneview'),                       
    (r'^hostbase/zones/(?P<zone_id>\d+)/edit', 'zoneedit'),
    (r'^hostbase/zones/new/$', 'zonenew'),
    (r'^hostbase/zones/(?P<zone_id>\d+)/(?P<item>\D+)/(?P<item_id>\d+)/confirm', 'confirm'),
                       )