Example #1
0
 def exportVocabulary(self, indexes):
     FileManager.writeFile(FileManager.getVocabularyFileUrl(self.type), json.dumps(indexes))
     return self
Example #2
0
 def importVocabulary(self):
     return json.loads(FileManager.readFile(FileManager.getVocabularyFileUrl(self.type)))