Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / vigiboard / controllers / vigiboard_plugin / tests.py @ 348eec2c

History | View | Annotate | Download (560 Bytes)

1
# -*- coding: utf-8 -*-
2
# vim:set expandtab tabstop=4 shiftwidth=4: 
3
"""
4
Plugin for tests
5
"""
6

    
7
from vigiboard.controllers.vigiboard_plugin.shn import \
8
                PluginSHN
9
from vigiboard.model import EventHistory, Event
10

    
11
class MonPlugin(PluginSHN):
12
    """Plugin de test"""
13
    
14
    def __init__(self):
15
        PluginSHN.__init__(
16
            self,
17
            table = [EventHistory.idevent],
18
            join = [(EventHistory, EventHistory.idevent == Event.idevent)]
19
        )
20

    
21
    def show(self, req):
22
        """Fonction d'affichage"""
23
        return req[1]