[kupfer] volumes: Add mountpoint basname as alias of each mount



commit b00940ea3f5f6862344500ad32fabc15cda324fd
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Apr 2 01:50:41 2011 +0200

    volumes: Add mountpoint basname as alias of each mount
    
    In the case the device/volume/mount has a different display name than
    mountpoint, add the mountpoint name as an alias.

 kupfer/plugin/volumes.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/volumes.py b/kupfer/plugin/volumes.py
index 8a85461..41306ab 100644
--- a/kupfer/plugin/volumes.py
+++ b/kupfer/plugin/volumes.py
@@ -24,6 +24,7 @@ class Volume (FileLeaf):
 		fil = self.volume.get_root()
 		path = fil.get_path()
 		super(Volume, self).__init__(obj=path, name=volume.get_name())
+		self.kupfer_add_alias(fil.get_basename())
 
 	def get_actions(self):
 		yield Open()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]