diff options
Diffstat (limited to 'portato/gui/utils.py')
-rw-r--r-- | portato/gui/utils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/portato/gui/utils.py b/portato/gui/utils.py index 035d1c6..c4f25fa 100644 --- a/portato/gui/utils.py +++ b/portato/gui/utils.py @@ -24,7 +24,7 @@ from functools import wraps # some backend things from ..backend import flags, system, set_system from ..helper import debug, info, set_log_level -from ..constants import USE_CATAPULT, APP, LOCALE_DIR +from ..constants import APP, LOCALE_DIR # parser from ..config_parser import ConfigParser @@ -86,8 +86,7 @@ class Config (ConfigParser): def modify_system_config (self): """Sets the system config. @see: L{backend.set_system()}""" - if not USE_CATAPULT: - set_system(self.get("system")) + set_system(self.get("system")) def modify_external_configs (self): """Convenience function setting all external configs.""" @@ -132,7 +131,8 @@ class Config (ConfigParser): ConfigParser.write(self) self.modify_external_configs() -class PkgData: +class PkgData (object): + __slots__ = ("cat", "pkg", "inst") def __init__ (self, cat, pkg, inst): self.cat = cat @@ -146,7 +146,7 @@ class PkgData: return cmp(self.pkg.lower(), other.pkg.lower()) def __repr__ (self): - return "<Package (%(cat)s, %(pkg)s, %(inst)s)>" % self.__dict__ + return "<Package (%(cat)s, %(pkg)s, %(inst)s)>" % {"cat" : self.cat, "pkg" : self.pkg, "inst" : self.inst} class Database (object): """An internal database which holds a simple dictionary cat -> [package_list].""" |