~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
from django.db import models

from linaro_django_xmlrpc.models import ExposedAPI


class PermissionsModel(models.Model):
    class Meta:
        permissions = (
            ('can_view_raw_data', "Can view raw data"),
        )

class LinaroGraphicsAPI(ExposedAPI):

    def demoMethod(self):
        """
        This is a demo method.
        """
        return 42