Some cleaning

This commit is contained in:
Florent 2014-03-19 17:04:49 +01:00
commit 492cc0e63b
3 changed files with 3 additions and 8 deletions

View file

@ -39,7 +39,7 @@ class ListPage(HTMLPage):
forecasts = {'pf_gerade.png': u'stable',
'pf_unten.png': u'Go down',
'pf_oben.png': u'Go up',
}
}
alarmlevel = {"as1.gif": u"Alarmstufe 1", "as2.gif": u"Alarmstufe 2",
"as3.gif": u"Alarmstufe 3", "as4.gig": u"Alarmstufe 4",
"qua_grau.gif": u"No alarm function", "p_gruen.gif": u"",
@ -109,10 +109,9 @@ class HistoryPage(HTMLPage):
def condition(self):
return self.verif.match(self.el[0].text_content())
obj_id = None
obj_date = Date(Regexp(CleanText('.'), r'(\d+)\.(\d+)\.(\d+) (\d+):(\d+)', r'\3-\2-\1 \4:\5'))
sensor_types = [u'Level', u'Flow']
def obj_level(self):
index = self.sensor_types.index(self.env['sensor'].name) + 1
try: