dummytools module

class dummytools.Dummy(*args, **kwargs)[source]

Bases: mount.MountControl

This is a template for mounting services. For simple mount services all you need to do is: - add your settings in qt/settingsdialog.py - add settings in common/config.p - modify a copy of this file

Please use self.currentMountpoint as your local mountpoint. This class inherit from mount.MountControl. All methodes from MountControl can be used exactly like they were in this class. Methodes from MountControl also can be overriden in here if you need something different.

_mount()[source]

mount the service

_umount()[source]

umount the service

postMountCheck()[source]

check if mount was successful raise MountException(_(‘Error discription’)) if not

postUmountCheck()[source]

check if umount successful raise MountException(_(‘Error discription’)) if not

preMountCheck(first_run=False)[source]

check what ever conditions must be given for the mount to be done successful raise MountException(_(‘Error discription’)) if service can not mount return True if everything is okay all pre|post_[u]mount_check can also be used to prepare things or clean up

preUmountCheck()[source]

check if service is safe to umount raise MountException(_(‘Error discription’)) if not