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)
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)