url(r'^search/(?P<details>costs)/(?P<device>\d+)$', login_required(SearchCosts.as_view()), {}, 'search'), url(r'^search/(?P<details>history)/(?P<device>\d+)$', login_required(SearchHistory.as_view()), {}, 'search'), url(r'^search/(?P<details>purchase)/(?P<device>\d+)$', login_required(SearchPurchase.as_view()), {}, 'search'), url(r'^search/(?P<details>discover)/(?P<device>\d+)$', login_required(SearchDiscover.as_view()), {}, 'search'), url(r'^search/(?P<details>reports)/(?P<report>([a-z][\w_-]*)?)$', login_required(ReportSearchDeviceList.as_view()), {'device': ''}, 'search'), url(r'^search/(?P<details>reports)/(?P<device>\d+)$', login_required(SearchReports.as_view()), {}, 'search'), url(r'^search/(?P<details>\w*)/(?P<device>)$', login_required(SearchDeviceList.as_view()), {}, 'search'), url(r'^search/(?P<details>cmdb)/(?P<device>\d+)$', login_required(SearchCmdb.as_view()), {}, 'search'), url(r'^ventures/$', login_required(VenturesDeviceList.as_view()), {}, 'ventures'), url(r'^ventures/(?P<venture>[.\w*-]*)/(?P<details>info|components|software|addresses|prices|costs|history|purchase|discover|cmdb)/(?P<device>)$', login_required(VenturesDeviceList.as_view()), {}, 'ventures'), url(r'^ventures/(?P<venture>)(?P<details>info|components|software|addresses|prices|costs|history|purchase|discover|cmdb)/(?P<device>)$', login_required(VenturesDeviceList.as_view()), {}, 'ventures'), url(r'^ventures/(?P<venture>[.\w*-]*)/(?P<details>reports)/(?P<report>([a-z][\w_-]*)?)$', login_required(ReportVenturesDeviceList.as_view()), {'device': ''}, 'ventures'), url(r'^ventures/(?P<venture>)(?P<details>reports)/(?P<report>([a-z][\w_-]*)?)$', login_required(ReportVenturesDeviceList.as_view()), {'device': ''}, 'ventures'), url(r'^ventures/(?P<venture>[.\w*-]*)/(?P<details>info)/(?P<device>\d+)$', login_required(VenturesInfo.as_view()), {}, 'ventures'), url(r'^ventures/(?P<venture>[.\w*-]*)/(?P<details>components)/(?P<device>\d+)$',
from __future__ import unicode_literals from django.conf.urls.defaults import patterns, include, url from django.contrib.auth.decorators import login_required from ralph.cmdb.views import (Index, Search, Edit, Add, View, ViewIframe, EditRelation, LastChanges, AddRelation, ViewJira, ViewUnknown) from ralph.cmdb.views_changes import (Changes, Problems, Incidents, Change, Dashboard, Reports, DashboardDetails) from ralph.cmdb.views_changes import TimeLine from ralph.cmdb.views import Graphs, GraphsTree urlpatterns = patterns( '', (r'^$', login_required(Index.as_view())), (r'^search$', login_required(Search.as_view())), url(r'^ci/view/(?P<ci_id>\w+)$', login_required(View.as_view()), name='ci_view'), (r'^ci/view/(?P<ci_id>[a-z]{2}-[0-9]+)$', login_required(View.as_view())), (r'^ci/view_iframe/(?P<ci_id>\w+)$', login_required(ViewIframe.as_view())), (r'^ci/view_jira/(?P<ci_uid>.*)$', login_required(ViewJira.as_view())), (r'^ci/jira_ci_unknown/$', login_required(ViewUnknown.as_view())), url(r'^ci/edit/(?P<ci_id>\w+)$', login_required(Edit.as_view()), name='ci_edit'), (r'^ci/get_last_changes/(?P<ci_id>.*)$', login_required(LastChanges.as_view())), (r'^relation/add/(?P<ci_id>\w+)$', login_required(AddRelation.as_view())), (r'^relation/delete/(?P<relation_id>\w+)/(?P<ci_id>\w+)$', login_required(EditRelation.as_view())), (r'^relation/edit/(?P<relation_id>\w+)$',
from ralph.cmdb.views_changes import ( Change, Changes, Dashboard, DashboardDetails, Incidents, Problems, Reports, ) from ralph.cmdb.views_changes import TimeLine from ralph.cmdb.views import Graphs urlpatterns = patterns( '', (r'^$', login_required(Index.as_view())), (r'^search$', login_required(Search.as_view())), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)$', login_required(MainCIView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/main/$', login_required(MainCIView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/relations/$', login_required(CIRelationsView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/git/$', login_required(CIGitView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/puppet/$', login_required(CIPuppetView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/ralph/$', login_required(CIRalphView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/ci_changes/$', login_required(CIChangesView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/zabbix/$', login_required(CIZabbixView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/problems/$', login_required(CIProblemsView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/incidents/$', login_required(CIIncidentsView.as_view()), name='ci_view'), url(r'^ci/view/(?P<ci_id>[a-z]{0,2}-?[0-9]+)/so/$', login_required(CISOEventsView.as_view()), name='ci_view'), (r'^ci/jira_ci_unknown/$', login_required(ViewUnknown.as_view())),
login_required(SearchPrices.as_view()), {}, 'search'), url(r'^search/(?P<details>costs)/(?P<device>\d+)$', login_required(SearchCosts.as_view()), {}, 'search'), url(r'^search/(?P<details>history)/(?P<device>\d+)$', login_required(SearchHistory.as_view()), {}, 'search'), url(r'^search/(?P<details>asset)/(?P<device>\d+)$', login_required(SearchAsset.as_view()), {}, 'search'), url(r'^search/(?P<details>reports)/(?P<report>([a-z][\w_-]*)?)$', login_required(ReportSearchDeviceList.as_view()), {'device': ''}, 'search'), url(r'^search/(?P<details>reports)/(?P<device>\d+)$', login_required(SearchReports.as_view()), {}, 'search'), url(r'^search/(?P<details>\w*)/(?P<device>)$', login_required(SearchDeviceList.as_view()), {}, 'search'), url(r'^search/(?P<details>cmdb)/(?P<device>\d+)$', login_required(SearchCmdb.as_view()), {}, 'search'), url(r'^search/(?P<details>scan)/(?P<address>[\d.]*)/$', login_required(SearchScan.as_view()), {}, 'search'), url(r'^ventures/$', login_required(VenturesDeviceList.as_view()), {}, 'ventures'), url( r'^ventures/(?P<venture>[.\w*-]*)/(?P<details>info|components|software|addresses|prices|costs|history|asset|discover|cmdb)/(?P<device>)$', login_required(VenturesDeviceList.as_view()), {}, 'ventures'), url( r'^ventures/(?P<venture>)(?P<details>info|components|software|addresses|prices|costs|history|asset|discover|cmdb)/(?P<device>)$', login_required(VenturesDeviceList.as_view()), {}, 'ventures'), url( r'^ventures/(?P<venture>[.\w*-]*)/(?P<details>reports)/(?P<report>([a-z][\w_-]*)?)$', login_required(ReportVenturesDeviceList.as_view()), {'device': ''}, 'ventures'), url(