コード例 #1
0
 def makeConfFileSystem(self, text):
     """
     Create a temporary file instance and returns a FileSystem with it.
     """
     self._testfile = makeTempFile(text)
     fsconf = FileSystem.create_from_model(self._testfile.name)
     return fsconf
コード例 #2
0
ファイル: ConfigFileSystemTest.py プロジェクト: thiell/shine
 def makeConfFileSystem(self, text):
     """
     Create a temporary file instance and returns a FileSystem with it.
     """
     self._testfile = makeTempFile(text)
     fsconf = FileSystem.create_from_model(self._testfile.name)
     return fsconf
コード例 #3
0
 def create_from_model(cls, lmf, update_mode=False):
     conf = Configuration()
     conf._fs = FileSystem.create_from_model(lmf, update_mode=update_mode)
     return conf
コード例 #4
0
 def create_from_model(cls, lmf, update_mode=False):
     conf = Configuration()
     conf._fs = FileSystem.create_from_model(lmf, update_mode=update_mode)
     return conf