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

« back to all changes in this revision

Viewing changes to linaro_graphics_app/models.py

  • Committer: Alexandros Frantzis
  • Date: 2011-11-30 10:53:05 UTC
  • Revision ID: alexandros.frantzis@linaro.org-20111130105305-vnpgt3edyzkktcdi
First version of linaro-graphics-dashboard.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import models
 
2
 
 
3
from linaro_django_xmlrpc.models import ExposedAPI
 
4
 
 
5
 
 
6
class Message(models.Model):
 
7
 
 
8
    text = models.TextField()
 
9
 
 
10
 
 
11
class LinaroGraphicsAPI(ExposedAPI):
 
12
 
 
13
    def demoMethod(self):
 
14
        """
 
15
        This is a demo method.
 
16
        """
 
17
        return 42