Ejemplo n.º 1
0
 def update(self, partition, hint=None):
     msgstr = 'In update with partition of %s and hint of %s.' % (partition,
                                                                  hint)
     msglog.log('USB_Storage', msglog.types.INFO,
                msgstr)
     type = hint
     e = USBChangeEvent(self, type)
     e.device = None
     e.partition = partition
     self.event_generate(e)
Ejemplo n.º 2
0
 def update(self, partition, hint=None):
     msglog.log('USB', msglog.types.INFO,
                'In update with partition of %s & hint of %s.' % (partition,
                                                                  hint))
     type = 'update'
     e = USBChangeEvent(self, type)
     e.device = None
     e.partition = partition
     self.event_generate(e)
     for x in self.children_nodes():
         x.update(partition, hint)
Ejemplo n.º 3
0
 def _remove_device_event(self, device):
     e = USBChangeEvent(self, 'remove')
     e.device = device
     self.event_generate(e)  
Ejemplo n.º 4
0
 def _add_device_event(self, device):
     e = USBChangeEvent(self, 'add')
     e.device = device
     self.event_generate(e)