~allanlesage/+junk/helipad-alesage-sauce

« back to all changes in this revision

Viewing changes to bootspeed/dashboard.py

  • Committer: Tarmac
  • Author(s): Joe Talbott
  • Date: 2013-07-25 14:08:50 UTC
  • mfrom: (517.1.2 plugin_url_patterns)
  • Revision ID: tarmac-20130725140850-u0gysdm0go7zmpb6
[r=Chris Johnston, Andy Doan, PS Jenkins bot] Use actual patterns to make plugin devs lives easier.

Suggested-By: Andy Doan <andy.doan@canonical.com>  from Joe Talbott

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.conf.urls.defaults import (
 
2
    include,
 
3
    patterns,
 
4
    url,
 
5
)
1
6
from django.core.management import call_command
2
7
from django.db import models
3
8
from django.template.loader import render_to_string
153
158
 
154
159
class BootspeedExtension(Extension):
155
160
 
156
 
    URL_PATTERNS = [
157
 
        dict(
158
 
            url_prefix="bootspeed",
159
 
            module="bootspeed.urls",
160
 
        ),
161
 
        dict(
162
 
            url_prefix="api/bootspeed",
163
 
            module="bootspeed.urls_api",
164
 
        ),
165
 
    ]
 
161
    URL_PATTERNS = patterns(
 
162
        '',
 
163
        url(r'^bootspeed/', include('bootspeed.urls')),
 
164
        url(r'^api/bootspeed/', include('bootspeed.urls_api')),
 
165
    )
166
166
 
167
167
    def contribute_to_kpis(self, kpi_mgr):
168
168
        return [