summaryrefslogtreecommitdiff
path: root/portato/db/database.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-03-05 01:57:04 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-03-05 01:57:04 +0100
commit7449bc5fb8f71e59ea300663388e12b30ab8d130 (patch)
tree9ae0ea8aa3e95d387de78be1b0753578867e2979 /portato/db/database.py
parentbb95009b602311c280b4649aa6615099ceca11c0 (diff)
downloadportato-7449bc5fb8f71e59ea300663388e12b30ab8d130.tar.gz
portato-7449bc5fb8f71e59ea300663388e12b30ab8d130.tar.bz2
portato-7449bc5fb8f71e59ea300663388e12b30ab8d130.zip
Added some textual descriptions
Diffstat (limited to '')
-rw-r--r--portato/db/database.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/portato/db/database.py b/portato/db/database.py
index 67ac554..3b03a5b 100644
--- a/portato/db/database.py
+++ b/portato/db/database.py
@@ -44,6 +44,13 @@ class Database (object):
SEARCH_NAME = 1
SEARCH_DESCRIPTION = 2
+ TYPES = {
+ SEARCH_NAME = _("Name"),
+ SEARCH_DESCRIPTION = _("Description"),
+ SEARCH_NAME | SEARCH_DESCRIPTION = _("Name + Description")
+ }
+
+
def __init__ (self):
self._lock = RLock()
self.type = self.SEARCH_NAME