vigiboard / vigiboard / controllers / vigiboard_plugin / tests.py @ 3d0d254c
History | View | Annotate | Download (645 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 import \ |
8 |
VigiboardRequestPlugin
|
9 |
from vigiboard.model import EventHistory, Event |
10 |
|
11 |
class MonPlugin(VigiboardRequestPlugin): |
12 |
"""Plugin de test"""
|
13 |
|
14 |
def __init__(self): |
15 |
VigiboardRequestPlugin.__init__( |
16 |
self,
|
17 |
table=[EventHistory.idevent], |
18 |
join=[(EventHistory, EventHistory.idevent == Event.idevent)], |
19 |
groupby=[EventHistory.idevent], |
20 |
) |
21 |
|
22 |
def show(self, aggregate): |
23 |
"""Fonction d'affichage"""
|
24 |
return aggregate
|
25 |
|