summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authornecoro <>2007-08-10 02:22:40 +0000
committernecoro <>2007-08-10 02:22:40 +0000
commita6a5cace4864c37b7a820c89540f85069d842521 (patch)
tree72379c0060510ee05635466fcb41c86191497077 /portato/backend
parente3e2339cf2156a12b61b91f56c9ea596df57198e (diff)
downloadportato-a6a5cace4864c37b7a820c89540f85069d842521.tar.gz
portato-a6a5cace4864c37b7a820c89540f85069d842521.tar.bz2
portato-a6a5cace4864c37b7a820c89540f85069d842521.zip
add splash screen
Diffstat (limited to 'portato/backend')
-rw-r--r--portato/backend/__init__.py5
-rw-r--r--portato/backend/package.py2
-rw-r--r--portato/backend/system_interface.py2
3 files changed, 4 insertions, 5 deletions
diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py
index c3de443..d1d61e8 100644
--- a/portato/backend/__init__.py
+++ b/portato/backend/__init__.py
@@ -16,14 +16,13 @@ from system_interface import SystemInterface
SYSTEM = "portage" # the name of the current system
_sys = None # the SystemInterface-instance
-class SystemWrapper (object, SystemInterface):
+class SystemWrapper (SystemInterface):
"""This is a wrapper to the different system interfaces, allowing the direct import via C{from portato.backend import system}.
With this wrapper a change of the system is propagated to all imports."""
def __getattribute__ (self, name):
"""Just pass all attribute accesses directly to _sys."""
- global _sys
- return eval ("_sys.%s" % name)
+ return getattr(_sys, name)
def set_system (new_sys):
"""Sets the current system to a new one.
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 72cd671..ef0be11 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -13,7 +13,7 @@
from portato.backend import system
import flags
-class Package:
+class Package (object):
"""This is a class abstracting a normal package which can be installed."""
def __init__ (self, cpv):
diff --git a/portato/backend/system_interface.py b/portato/backend/system_interface.py
index 3ce401c..4e9618b 100644
--- a/portato/backend/system_interface.py
+++ b/portato/backend/system_interface.py
@@ -10,7 +10,7 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-class SystemInterface:
+class SystemInterface (object):
def split_cpv (self, cpv):
"""Splits a cpv into all its parts.