Package screenlets :: Module install :: Class ScreenletInstaller
[hide private]
[frames] | no frames]

Class ScreenletInstaller

source code

A simple utility to install screenlets into the current user's directory (so either into $HOME/.screenlets/ for normal users or, if run as root, into screenlets.INSTALL_PREFIX/share/screenlets/).

Instance Methods [hide private]
 
__init__(self) source code
 
get_info_from_package_name(self, filename)
Return all info we can get from the package-name or return None if something went wrong.
source code
 
get_result_message(self)
Return a human-readable result message about the last operation.
source code
 
is_installed(self, name)
Checks if the given screenlet with the name defined by 'name' (without trailing 'Screenlet') is already installed in the current install target location.
source code
 
install(self, filename)
Install a screenlet from a given archive-file.
source code
Method Details [hide private]

get_info_from_package_name(self, filename)

source code 
Return all info we can get from the package-name or return None if something went wrong. If nothing failed, the returned value is a 4-tuple of the form: (name, version, basename, extension).

install(self, filename)

source code 
Install a screenlet from a given archive-file. Extracts the contents of the archive to the user's screenlet dir.