~linaro-graphics-wg/linaro-graphics-dashboard/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright (C) 2011 Linaro Limited
#
# Author: Alexandros Frantzis <alexandros.frantzis@linaro.org>
#
# This file is part of LAVA Server.
#
# LAVA Server is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
# as published by the Free Software Foundation
#
# LAVA Server is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with LAVA Server.  If not, see <http://www.gnu.org/licenses/>.

import versiontools
from lava_server.extension import LavaServerExtension

import linaro_graphics_app


class LinaroGraphicsExtension(LavaServerExtension):
    """
	Linaro Graphics Extension
    """

    @property
    def app_name(self):
        return "linaro_graphics_app"

    @property
    def name(self):
        return "Graphics"

    @property
    def api_class(self):
        from linaro_graphics_app.models import LinaroGraphicsAPI
        return LinaroGraphicsAPI

    @property
    def main_view_name(self):
        return "linaro_graphics_app.views.index"

    @property
    def description(self):
        return "Linaro Graphics extension"

    @property
    def version(self):
        return versiontools.format_version(linaro_graphics_app.__version__)