diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-01-28 12:45:01 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-01-28 12:45:01 +0100 |
commit | 804606b721296a3dc6b4d386eaa3336ae772c9a2 (patch) | |
tree | 280b2719684ccaef6c837b72747cf5918b2ad5e5 /portato/gui | |
parent | 1e15be78f10ea1fbcc33d7b8dfe42433f447092d (diff) | |
download | portato-804606b721296a3dc6b4d386eaa3336ae772c9a2.tar.gz portato-804606b721296a3dc6b4d386eaa3336ae772c9a2.tar.bz2 portato-804606b721296a3dc6b4d386eaa3336ae772c9a2.zip |
First 'db' layout
Diffstat (limited to 'portato/gui')
-rw-r--r-- | portato/gui/utils.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/portato/gui/utils.py b/portato/gui/utils.py index d8af545..7f30269 100644 --- a/portato/gui/utils.py +++ b/portato/gui/utils.py @@ -157,23 +157,6 @@ class Config (ConfigParser): ConfigParser.write(self) self.modify_external_configs() -class PkgData (object): - __slots__ = ("cat", "pkg", "inst") - - def __init__ (self, cat, pkg, inst): - self.cat = cat - self.pkg = pkg - self.inst = inst - - def __iter__ (self): - return iter((self.cat, self.pkg, self.inst)) - - def __cmp__ (self, other): - return cmp(self.pkg.lower(), other.pkg.lower()) - - def __repr__ (self): - return "<Package (%(cat)s, %(pkg)s, %(inst)s)>" % {"cat" : self.cat, "pkg" : self.pkg, "inst" : self.inst} - class DictDatabase (object): """An internal database which holds a simple dictionary cat -> [package_list].""" |