Esempio n. 1
0
 def load(self):
     if self.path:
         try:
             with fsops.open(self.path,'rb') as dfile:
                 self.dict.update(self._load(dfile))
         except fsops.FileDoesNotExist:
             pass
Esempio n. 2
0
 def dump(self):
     if self.dirty:
         if self.path:
             with fsops.open(self.path,'wb') as dfile:
                 self._dump(self.dict,dfile)
                 self.dirty = False
Esempio n. 3
0
 def open(self,path,mode,perm=0755):
     return fsops.open(self.pathto(path),mode,perm)