mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Add self as an argument to methos in src/dbi.py
This commit is contained in:
parent
776ce96d52
commit
af460596d3
@ -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()
|
||||
|
@ -1,3 +1,3 @@
|
||||
"""stick the various versioning attributes in here, so we only have to change
|
||||
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)'
|
||||
|
Loading…
Reference in New Issue
Block a user