# Path: scans/views.py
# def index(request):
# def scan_delete(request, scan_id):
# def scan_profiles(request):
# def delete_profile(request, profile_id):
# def new_scan_profile(request):
# def scan_detail(request,scan_id):
# def server_control(request):
# def server_action(request, action_id):
# def search_results(request):	
# def new_scan(request):
# def scan_download(request,download_id):
# def ajax_scan_list(request):
# def ajax_server_output(request):
# def ajax_server_log(request):
# def ajax_server_jobs(request):
# def ajax_server_at(request):


from django.conf.urls import patterns, url
from scans import views

urlpatterns=patterns('',
	url(r'^$',views.index, name='index'),
	url(r'^new/$',views.new_scan, name='new_scan'),
	url(r'^serverctl/$', views.server_control, name="server_control"),
	url(r'^serverctl/action/(?P<action_id>\d+)/$', views.server_action, name="server_action"),
	url(r'^(?P<scan_id>\d+)/$', views.scan_detail, name='scan_detail'),
	url(r'^(?P<scan_id>\d+)/delete$', views.scan_delete, name='scan_delete'),

# Path: scans/views.py
# def index(request):
# def scan_delete(request, scan_id):
# def scan_profiles(request):
# def delete_profile(request, profile_id):
# def new_scan_profile(request):
# def scan_detail(request,scan_id):
# def server_control(request):
# def server_action(request, action_id):
# def search_results(request):	
# def new_scan(request):
# def scan_download(request,download_id):
# def ajax_scan_list(request):
# def ajax_server_output(request):
# def ajax_server_log(request):
# def ajax_server_jobs(request):
# def ajax_server_at(request):


# Path: scans/urls.py
from django.conf.urls import patterns, url
from scans import views


urlpatterns=patterns('',
	url(r'^$',views.index, name='index'),
	url(r'^new/$',views.new_scan, name='new_scan'),
	url(r'^serverctl/$', views.server_control, name="server_control"),
	url(r'^serverctl/action/(?P<action_id>\d+)/$', views.server_action, name="server_action"),
	url(r'^(?P<scan_id>\d+)/$', views.scan_detail, name='scan_detail'),
	url(r'^(?P<scan_id>\d+)/delete$', views.scan_delete, name='scan_delete'),

	url(r'^(?P<download_id>\d+)/download/$', views.scan_download, name='scan_download'),