added volume plugin icons

fixed small bugs in error output
fixed some subprocess.communicate mistakes
fixed display bug in partition plugin
This commit is contained in:
lars 2006-11-03 14:27:55 +00:00
parent 2d7b34afaa
commit 5846c3b0f8
15 changed files with 16 additions and 16 deletions

View file

@ -1,5 +1,5 @@
Name = Mount and umount volumes
Link = Main
Link = Activation
Title {

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -37,7 +37,7 @@ class volume_mount(CryptoBoxPlugin.CryptoBoxPlugin):
def __doMountPlain(self):
if self.container.isMounted():
self.hdf["Data.Warning"] = "Plugins.volume_mount.IsAlreadyMounted"
self.cbox.log.info("the device (%s) is already mounted" % device)
self.cbox.log.info("the device (%s) is already mounted" % self.device)
return "volume_status"
if self.container.getType() != self.container.Types["plain"]:
## not a plain container - fail silently
@ -61,11 +61,11 @@ class volume_mount(CryptoBoxPlugin.CryptoBoxPlugin):
def __doMountLuks(self, pw):
if self.container.isMounted():
self.hdf["Data.Warning"] = "Plugins.volume_mount.IsAlreadyMounted"
self.cbox.log.info("the device (%s) is already mounted" % device)
self.cbox.log.info("the device (%s) is already mounted" % self.device)
return "volume_status"
if not pw:
self.dataset["Data.Warning"] = "EmptyPassword"
self.log.info("no password was supplied for mounting of device: '%s'" % device)
self.log.info("no password was supplied for mounting of device: '%s'" % self.device)
return "volume_status"
if self.container.getType() != self.container.Types["luks"]:
## not a luks container - fail silently