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

Class ScreenletInstaller

source code

object --+
         |
        ScreenletInstaller

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)
x.__init__(...) initializes x; see help(type(x)) for signature
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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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.