summaryrefslogtreecommitdiff
path: root/portato/db/database.py
diff options
context:
space:
mode:
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