From 14609b3bb2f625b4ca3dc65b3eeb59cccfc097b5 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 2 May 2012 20:50:06 +0200 Subject: [PATCH] Add self as an argument to methos in src/dbi.py --- src/dbi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbi.py b/src/dbi.py index ee19a9104..94dce6355 100644 --- a/src/dbi.py +++ b/src/dbi.py @@ -114,7 +114,7 @@ class DirMapping(MappingInterface): def _makeFilename(self, id): return os.path.join(self.dirname, str(id)) - def get(id): + def get(self, id): try: fd = file(self._makeFilename(id)) return fd.read() @@ -123,7 +123,7 @@ class DirMapping(MappingInterface): exn.realException = e raise exn - def set(id, s): + def set(self, id, s): fd = file(self._makeFilename(id), 'w') fd.write(s) fd.close()