summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
03cc372)
def inplaceread(m) :
def readinplace(self, *args, **kw) :
def inplaceread(m) :
def readinplace(self, *args, **kw) :
+ pos = self.logfile.tell()
+ self.logfile.seek(0)
ret = m(self, *args, **kw)
ret = m(self, *args, **kw)
return ret
return readinplace
return ret
return readinplace
else :
self.logfile = logfile
else :
self.logfile = logfile
firstline = self.next()
assert firstline == SUPPORTED_FILE_HEADER
firstline = self.next()
assert firstline == SUPPORTED_FILE_HEADER
- def savePos(self) :
- self.__pos = self.logfile.tell()
- self.logfile.seek(0)
-
- def recallPos(self) :
- self.logfile.seek(self.__pos)
-
@inplaceread
def getSongFile(self) :
"retourne le chemin d'accès au fichier musicxml de la chanson"
@inplaceread
def getSongFile(self) :
"retourne le chemin d'accès au fichier musicxml de la chanson"