diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 15:18:10 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 15:18:10 +0200 |
commit | d44ce453d88624c8444f0733a56197d5291f52f6 (patch) | |
tree | 45d70288aa55f1866d0112c131ba9f497dd20431 | |
parent | 3f70553a078aafbb029782ec092c8d037d9ea45f (diff) | |
download | portato-d44ce453d88624c8444f0733a56197d5291f52f6.tar.gz portato-d44ce453d88624c8444f0733a56197d5291f52f6.tar.bz2 portato-d44ce453d88624c8444f0733a56197d5291f52f6.zip |
Rename DictDatabase to HashDatabase
Diffstat (limited to '')
-rw-r--r-- | portato/db/__init__.py | 6 | ||||
-rw-r--r-- | portato/db/hash.py (renamed from portato/db/dict.py) | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/portato/db/__init__.py b/portato/db/__init__.py index da8a81e..e6f9759 100644 --- a/portato/db/__init__.py +++ b/portato/db/__init__.py @@ -43,9 +43,9 @@ def Database(type): return SQLDatabase(SectionDict(_SESSION, "SQL")) elif type == "dict": - debug("Using DictDatabase") - from .dict import DictDatabase - return DictDatabase(SectionDict(_SESSION, "dict")) + debug("Using HashDatabase") + from .hash import HashDatabase + return HashDatabase(SectionDict(_SESSION, "dict")) else: error(_("Unknown database type: %s"), type) diff --git a/portato/db/dict.py b/portato/db/hash.py index 279ab97..8cea6f2 100644 --- a/portato/db/dict.py +++ b/portato/db/hash.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# File: portato/db/dict.py +# File: portato/db/hash.py # This file is part of the Portato-Project, a graphical portage-frontend. # # Copyright (C) 2006-2009 René 'Necoro' Neumann @@ -19,7 +19,7 @@ from ..helper import info from ..backend import system from .database import Database, PkgData -class DictDatabase (Database): +class HashDatabase (Database): """An internal database which holds a simple dictionary cat -> [package_list].""" lock = Database.lock |