Project

General

Profile

Revision b8500d1a

IDb8500d1a78503261749cac8a2735dbeea63b18a8
Parent a8bc47ae
Child 5011664c

Added by Thomas ANDREJAK over 14 years ago

Amélioration Pylint

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@599 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/controllers/vigiboardrequest.py
100 100
                mypac = __import__(
101 101
                    'vigiboard.controllers.vigiboard_plugin.' +\
102 102
                            plug[0],globals(), locals(), [plug[1]],-1)
103
                self.add_plugin(getattr(mypac,plug[1])())
103
                self.add_plugin(getattr(mypac, plug[1])())
104 104
            except:
105 105
                raise
106 106
        
......
274 274

  
275 275
        # Liste des éléments pour la tête du tableau
276 276

  
277
        lst_title = [['',{}], [_('Date')+ '<span style="font-weight:normal">' + _('<br />[Duration]') + '</span>', {'style':'text-align:left'}], ['#',{'title':_('Nombre d\'occurrences')}], [_('Host'),{'style':'text-align:left'}],
278
                [_('Service Type<br />Service Name'),{'style':'text-align:left'}], [_('Output'),{'style':'text-align:left'}]]
279
        lst_title.extend([[plug.name,plug.style] for plug in self.plugin])
280
        lst_title.extend([[_('[TT]'),{'title':_('Trouble Ticket')}], ['',{}]])
277
        lst_title = [
278
                ['',{}],
279
                [_('Date')+ '<span style="font-weight:normal">' + \
280
                        _('<br />[Duration]') + '</span>',
281
                        {'style':'text-align:left'}],
282
                ['#', {'title':_('Nombre d\'occurrences')}],
283
                [_('Host'), {'style':'text-align:left'}],
284
                [_('Service Type<br />Service Name'),
285
                    {'style':'text-align:left'}], 
286
                [_('Output'), {'style':'text-align:left'}]
287
                ]
288
        lst_title.extend([[plug.name, plug.style] for plug in self.plugin])
289
        lst_title.extend([[_('[TT]'), {'title': _('Trouble Ticket')}],
290
                            ['', {}]])
281 291
        events = [lst_title]
282 292
        i = 0
283 293
        class_tr = ['odd', 'even']
......
358 368
        hists = {}
359 369
        i = 0
360 370
        class_tr = ['odd', 'even']
361
        hostname = self.events[1][0].hostname
362
        servicename = self.events[1][0].servicename
363 371
        hist_tmp = []
364 372
        last_idevent = history[0].idevent
365 373
        for hist in history :

Also available in: Unified diff