From b90634a122458304bbd96bbac099eb1bcb8c7b70 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 21 Feb 2009 12:49:52 +0100 Subject: Well -- ehm -- yeah --- portato/db/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'portato') diff --git a/portato/db/__init__.py b/portato/db/__init__.py index f83659c..da8a81e 100644 --- a/portato/db/__init__.py +++ b/portato/db/__init__.py @@ -38,8 +38,7 @@ def Database(type): from .sql import SQLDatabase except ImportError: warning(_("Cannot load SQLDatabase.")) - _TYPE = "dict" - return Database(type) + return Database("dict") else: return SQLDatabase(SectionDict(_SESSION, "SQL")) -- cgit v1.2.3-54-g00ecf From afd4946c2cd0430345cb808c28881f0e2f699f40 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 24 Feb 2009 15:04:48 +0100 Subject: Typo --- portato/plistener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato') diff --git a/portato/plistener.py b/portato/plistener.py index 349cf03..4a248ab 100644 --- a/portato/plistener.py +++ b/portato/plistener.py @@ -48,7 +48,7 @@ class PListener (object): self._rw.V() data = string.split("\0") - debug("Listner received: %s", data) + debug("Listener received: %s", data) if data[0] == "notify": self.do_notify(*data[1:]) -- cgit v1.2.3-54-g00ecf From 3f02f33cc7bd3546453d22d072131218d5cdc1d0 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 24 Feb 2009 18:25:28 +0100 Subject: Use local config dir --- portato/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato') diff --git a/portato/constants.py b/portato/constants.py index 937dea5..f188897 100644 --- a/portato/constants.py +++ b/portato/constants.py @@ -61,7 +61,7 @@ HOME = os.environ["HOME"] SU_COMMAND = "gksu -D 'Portato'" # config -CONFIG_DIR = "/etc/portato/" +CONFIG_DIR = "etc/" CONFIG_LOCATION = pjoin(CONFIG_DIR, "portato.cfg") SESSION_DIR = pjoin(os.environ["HOME"], ".portato") -- cgit v1.2.3-54-g00ecf