Ejemplo n.º 1
0
 def startElement(self, name, attrs, connection):
     if name == 'member':
         d = Dimension()
         self.append(d)
         return d
     else:
         return None
Ejemplo n.º 2
0
Archivo: alarm.py Proyecto: Jhyrus/REPO
 def startElement(self, name, attrs, connection):
     if name == 'AlarmActions':
         self.alarm_actions = ListElement()
         return self.alarm_actions
     elif name == 'InsufficientDataActions':
         self.insufficient_data_actions = ListElement()
         return self.insufficient_data_actions
     elif name == 'OKActions':
         self.ok_actions = ListElement()
         return self.ok_actions
     elif name == 'Dimensions':
         self.dimensions = Dimension()
         return self.dimensions
     else:
         pass
Ejemplo n.º 3
0
 def startElement(self, name, attrs, connection):
     if name == 'Dimensions':
         self.dimensions = Dimension()
         return self.dimensions