Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Public Attributes
installpackage.PackageKit Class Reference

List of all members.

Public Member Functions

def __init__
def InstallPackageName

Public Attributes

 gpk_install_package_name

Detailed Description

Definition at line 25 of file installpackage.py.


Constructor & Destructor Documentation

Definition at line 26 of file installpackage.py.

00026 
00027     def __init__ (self):
00028         for dir in os.environ.get ("PATH", "").split (":"):
00029             path = dir + os.path.sep + "gpk-install-package-name"
00030             if os.access (path, os.X_OK):
00031                 self.gpk_install_package_name = path
00032                 return
00033 
00034         raise RuntimeError, "No gpk-install-package-name program available"


Member Function Documentation

def installpackage.PackageKit.InstallPackageName (   self,
  xid,
  timestamp,
  name 
)

Definition at line 35 of file installpackage.py.

00035 
00036     def InstallPackageName (self, xid, timestamp, name):
00037         glib.spawn_async ([self.gpk_install_package_name, name])

Member Data Documentation

Definition at line 30 of file installpackage.py.


The documentation for this class was generated from the following file: