~chris.gagnon/helipad/graphics-dont-import-blank-iso-version

9 by chris.gagnon
add dashboard.py add guitoolkits and nexuiz pages, update openarena stuff in views, urls, api, and layout to more generic phoronix terms
1
from django.core.management import call_command
2
from django.core.urlresolvers import reverse_lazy
3
from django.conf.urls.defaults import include, patterns, url
4
from common.plugin_helper import (
5
    Extension,
6
)
7
8
9
class GraphicsExtension(Extension):
10
11
    URL_PATTERNS = patterns(
12
        '',
13
        url(r'^graphics/', include('graphics.urls')),
14
        url(r'^api/graphics/', include('graphics.urls_api')),
15
    )
16
17
    LINKS = [
18
        {
19
            'name': 'graphics',
20
            'url': reverse_lazy('openarena'),
21
            'label': 'Graphics',
22
            'index': 800,
23
        },
24
    ]
25
26
    def pull_data(self):
27
        call_command('jenkins_pull_phoronix')
28
29
    @classmethod
30
    def name(cls):
31
        return cls.__name__
32
33
extension = GraphicsExtension()