summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/urls.py
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2006-11-22 21:18:05 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2006-11-22 21:18:05 +0000
commitc57c79a36f1e4d2b66ef7f01bc0a82ef7d5996e8 (patch)
tree139b14f96b8baa53dc837c0402113475f00b75b4 /src/lib/Server/Reports/urls.py
parentebf644b4c820244aad5019b5540ddac9401109de (diff)
downloadbcfg2-c57c79a36f1e4d2b66ef7f01bc0a82ef7d5996e8.tar.gz
bcfg2-c57c79a36f1e4d2b66ef7f01bc0a82ef7d5996e8.tar.bz2
bcfg2-c57c79a36f1e4d2b66ef7f01bc0a82ef7d5996e8.zip
finishing move
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2521 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Reports/urls.py')
-rw-r--r--src/lib/Server/Reports/urls.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/Server/Reports/urls.py b/src/lib/Server/Reports/urls.py
new file mode 100644
index 000000000..d6f9ecb3a
--- /dev/null
+++ b/src/lib/Server/Reports/urls.py
@@ -0,0 +1,36 @@
+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('',
+ # Example:
+ # (r'^brpt/', include('brpt.apps.foo.urls.foo')),
+ (r'^/*$','brpt.reports.views.index'),
+ (r'^clients/(?P<hostname>\S+)/(?P<pk>\d+)/$', 'brpt.reports.views.client_detail'),
+ (r'^clients/(?P<hostname>\S+)/$', 'brpt.reports.views.client_detail'),
+ (r'^clients/(?P<hostname>\S+)$', 'brpt.reports.views.client_detail'),
+ #hack because hostnames have periods and we still want to append slash
+ (r'^clients/$','brpt.reports.views.client_index'),
+ (r'^displays/sys-view/(?P<timestamp>(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])@([01][0-9]|2[0-3]):([0-5][0-9]|60):([0-5][0-9]|60))/$','brpt.reports.views.display_sys_view'),
+ (r'^displays/sys-view/$','brpt.reports.views.display_sys_view'),
+ (r'^displays/summary/(?P<timestamp>(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])@([01][0-9]|2[0-3]):([0-5][0-9]|60):([0-5][0-9]|60))/$','brpt.reports.views.display_summary'),
+ (r'^displays/summary/$','brpt.reports.views.display_summary'),
+ (r'^displays/timing/(?P<timestamp>(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])@([01][0-9]|2[0-3]):([0-5][0-9]|60):([0-5][0-9]|60))/$','brpt.reports.views.display_timing'),
+ (r'^displays/timing/$','brpt.reports.views.display_timing'),
+ (r'^displays/$','brpt.reports.views.display_index'),
+
+ (r'^elements/modified/(?P<eyedee>\d+)/(?P<timestamp>(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])@([01][0-9]|2[0-3]):([0-5][0-9]|60):([0-5][0-9]|60))/$','brpt.reports.views.config_item_modified'),
+ (r'^elements/modified/(?P<eyedee>\d+)/$','brpt.reports.views.config_item_modified'),
+ (r'^elements/bad/(?P<eyedee>\d+)/(?P<timestamp>(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])@([01][0-9]|2[0-3]):([0-5][0-9]|60):([0-5][0-9]|60))/$','brpt.reports.views.config_item_bad'),
+ (r'^elements/bad/(?P<eyedee>\d+)/$','brpt.reports.views.config_item_bad'),
+ )
+
+ # 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',
+# {'template_name': 'auth/login.html'}),
+# (r'^logout/$', 'django.contrib.auth.views.logout',
+# {'template_name': 'auth/logout.html'})
+# )