예제 #1
0
 def print_operator_messages(self):
     if self.c_wincc.rowcount > 0:
         for rec in self.c_wincc.fetchall():
             print datetime_to_str(utc_to_local(rec['DateTime'])), rec['PText1'], rec['PText2'], rec['PText3'], rec['PText4'], rec['Username']
예제 #2
0
 def print_alarms(self):
     if self.c_wincc.rowcount > 0:
         for rec in self.c_wincc.fetchall():
             print rec['MsgNr'], rec['State'], datetime_to_str(utc_to_local(rec['DateTime'])), rec['Classname'], rec['Typename'], rec['Text1']
         print("Rows: {rows}".format(rows=self.c_wincc.rowcount))