Add self as an argument to methos in src/dbi.py

This commit is contained in:
Valentin Lorentz 2012-05-02 20:50:06 +02:00
parent 776ce96d52
commit af460596d3
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ class DirMapping(MappingInterface):
def _makeFilename(self, id): def _makeFilename(self, id):
return os.path.join(self.dirname, str(id)) return os.path.join(self.dirname, str(id))
def get(id): def get(self, id):
try: try:
fd = file(self._makeFilename(id)) fd = file(self._makeFilename(id))
return fd.read() return fd.read()
@ -123,7 +123,7 @@ class DirMapping(MappingInterface):
exn.realException = e exn.realException = e
raise exn raise exn
def set(id, s): def set(self, id, s):
fd = file(self._makeFilename(id), 'w') fd = file(self._makeFilename(id), 'w')
fd.write(s) fd.write(s)
fd.close() fd.close()

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change """stick the various versioning attributes in here, so we only have to change
them once.""" them once."""
version = '0.83.4.1+limnoria (2012-05-02T18:48:49+0000)' version = '0.83.4.1+limnoria (2012-05-02T18:50:06+0000)'