Ejemplo n.º 1
0
        name='reports_item'),
)

urlpatterns += patterns(
    'Bcfg2.Server.Reports.reports',
    *timeviewUrls(
        (r'^grid/?$', 'views.client_index', None, 'reports_grid_view'),
        (r'^summary/?$', 'views.display_summary', None, 'reports_summary'),
        (r'^timing/?$', 'views.display_timing', None, 'reports_timing'),
        (r'^elements/(?P<type>\w+)/?$', 'views.config_item_list', None,
         'reports_item_list'),
    ))

urlpatterns += patterns(
    'Bcfg2.Server.Reports.reports',
    *filteredUrls(*timeviewUrls((r'^detailed/?$', 'views.client_detailed_list',
                                 None, 'reports_detailed_list'))))

urlpatterns += patterns(
    'Bcfg2.Server.Reports.reports',
    *paginatedUrls(*filteredUrls(
        (r'^history/?$', 'views.render_history_view', None, 'reports_history'),
        (r'^history/(?P<hostname>[^/|]+)/?$', 'views.render_history_view',
         None, 'reports_client_history'),
    )))

# Uncomment this for admin:
#(r'^admin/', include('django.contrib.admin.urls')),

## Uncomment this section if using authentication
#urlpatterns += patterns('',
#                        (r'^login/$', 'django.contrib.auth.views.login',
Ejemplo n.º 2
0
    url(r'^client/(?P<hostname>[^/]+)/(?P<pk>\d+)/?$', 'views.client_detail', name='reports_client_detail_pk'),
    url(r'^client/(?P<hostname>[^/]+)/?$', 'views.client_detail', name='reports_client_detail'),
    url(r'^elements/(?P<type>\w+)/(?P<pk>\d+)/?$', 'views.config_item', name='reports_item'),
)

urlpatterns += patterns('Bcfg2.Server.Reports.reports',
    *timeviewUrls(
        (r'^grid/?$', 'views.client_index', None, 'reports_grid_view'),
        (r'^summary/?$', 'views.display_summary', None, 'reports_summary'),
        (r'^timing/?$', 'views.display_timing', None, 'reports_timing'),
        (r'^elements/(?P<type>\w+)/?$', 'views.config_item_list', None, 'reports_item_list'),
))

urlpatterns += patterns('Bcfg2.Server.Reports.reports',
    *filteredUrls(*timeviewUrls(
        (r'^detailed/?$',
            'views.client_detailed_list', None, 'reports_detailed_list')
)))

urlpatterns += patterns('Bcfg2.Server.Reports.reports',
    *paginatedUrls( *filteredUrls(
        (r'^history/?$',
            'views.render_history_view', None, 'reports_history'),
        (r'^history/(?P<hostname>[^/|]+)/?$',
            'views.render_history_view', None, 'reports_client_history'),
)))

    # Uncomment this for admin:
    #(r'^admin/', include('django.contrib.admin.urls')),


## Uncomment this section if using authentication
Ejemplo n.º 3
0
Archivo: urls.py Proyecto: ab/bcfg2
    url(r'^elements/(?P<type>\w+)/(?P<pk>\d+)/?$', 'views.config_item', name='reports_item'),
    url(r'^entry/(?P<eid>\w+)/?$', 'views.entry_status', name='reports_entry'),
)

urlpatterns += patterns('Bcfg2.Server.Reports.reports',
    *timeviewUrls(
        (r'^summary/?$', 'views.display_summary', None, 'reports_summary'),
        (r'^timing/?$', 'views.display_timing', None, 'reports_timing'),
        (r'^common/(?P<threshold>\d+)/?$', 'views.common_problems', None, 'reports_common_problems'),
        (r'^common/?$', 'views.common_problems', None, 'reports_common_problems'),
))

urlpatterns += patterns('Bcfg2.Server.Reports.reports',
    *filteredUrls(*timeviewUrls(
        (r'^grid/?$', 'views.client_index', None, 'reports_grid_view'),
        (r'^detailed/?$',
            'views.client_detailed_list', None, 'reports_detailed_list'),
        (r'^elements/(?P<type>\w+)/?$', 'views.config_item_list', None, 'reports_item_list'),
)))

urlpatterns += patterns('Bcfg2.Server.Reports.reports',
    *paginatedUrls( *filteredUrls(
        (r'^history/?$',
            'views.render_history_view', None, 'reports_history'),
        (r'^history/(?P<hostname>[^/|]+)/?$',
            'views.render_history_view', None, 'reports_client_history'),
)))

    # Uncomment this for admin:
    #(r'^admin/', include('django.contrib.admin.urls')),