Example #1
0
 def __init__(self, mountpoints, name=""):
     if len(mountpoints) == 0:
         raise ValueError, "Must specify at least one mount point"
     if not name:
         name = mountpoints[0].split(os.sep)[-1]
     Device.__init__(self, name)
     self._mountpoints = mountpoints
     self.mountpoints = []
Example #2
0
 def __init__(self, mountpoints, name=""):
     if len(mountpoints) == 0:
         raise ValueError("Must specify at least one mount point")
     if not name:
         name = mountpoints[0].split(os.sep)[-1]
     Device.__init__(self, name)
     self._mountpoints = mountpoints
     self.mountpoints = []
Example #3
0
 def __init__(self, volume):
     self.volume = volume
     self.name = self.volume.GetProperty("volume.label")
     if not self.name:  # This ipod has not yet been given a name
         self.name = "Apple iPod Music Player"
     Device.__init__(self, self.name)
     self.db = None
     self._is_mounted = volume.GetProperty("volume.is_mounted")
     self.mountpoint = None
     self.collection = Collection("Master")
     if self._is_mounted:
         self.mountpoint = str(volume.GetProperty("volume.mount_point"))
         self.open_db()
         self.populate_collection()
Example #4
0
 def __init__(self, volume):
     self.volume = volume
     self.name = self.volume.GetProperty("volume.label")
     if not self.name: # This ipod has not yet been given a name
         self.name = "Apple iPod Music Player"
     Device.__init__(self, self.name)
     self.db = None
     self._is_mounted = volume.GetProperty("volume.is_mounted")
     self.mountpoint = None
     self.collection = Collection("Master")
     if self._is_mounted:
         self.mountpoint = str(volume.GetProperty("volume.mount_point"))
         self.open_db()
         self.populate_collection()
Example #5
0
 def __init__(self, dev):
     Device.__init__(self, dev)
     self.name = _("Audio Disc")
     self.dev = dev
Example #6
0
 def __init__(self, dev):
     Device.__init__(self, dev)
     self.name = _("Audio Disc")
     self.dev = dev