Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / vigiboard / controllers / vigiboard_plugin / tests.py @ eca41b2d

History | View | Annotate | Download (518 Bytes)

1
# -*- coding: utf-8 -*-
2
# vim:set expandtab tabstop=4 shiftwidth=4: 
3

    
4
from vigiboard.controllers.vigiboard_plugin.shn import \
5
                PluginSHN
6
from vigiboard.model import EventHistory, Events
7

    
8
class MonPlugin(PluginSHN):
9
    """Plugin de test"""
10
    
11
    def __init__(self):
12
        super(PluginSHN,self).__init__(
13
            table = [EventHistory.idevent],
14
            join = [(EventHistory, EventHistory.idevent == Events.idevent)]
15
        )
16

    
17
    def show(self, req):
18
        """Fonction d'affichage"""
19
        return req[1]
20