コード例 #1
0
 def TEST_codex_object(self):
     url_path = "Resources/WebData/Codex/GoogleCodex.json"
     string_data = FileService.get_object_from_path(url_path)
     Log.log(string_data)
     new_codex = FileService.convert_string_to_web_codex_action(string_data)
     new_name = new_codex.get_file_name()
     Log.log(new_name)
     Log.log(new_codex.to_json())
コード例 #2
0
 def TEST_codex_object(self):
     url_path = "Resources/WebData/Codex/GoogleCodex.json"
     string_data = FileService.get_object_from_path(url_path)
     Log.log(string_data)
     new_codex = FileService.convert_string_to_web_codex_action(string_data)
     new_name = new_codex.get_file_name()
     Log.log(new_name)
     Log.log(new_codex.to_json())
コード例 #3
0
ファイル: SharedDataActions.py プロジェクト: mgm-hub/PieTron
 def get_codex_data():
     complete_file_list = SharedDataActions.get_codex_directory_files()
     complete_dictionary = {}
     for my_file in complete_file_list:
         string_data = FileService.get_object_from_path(my_file)
         new_codex = FileService.convert_string_to_web_codex_action(string_data)
         new_map = new_codex.get_codex_map()
         list_dictionary = TextActions.convert_string_to_dictionary(new_map)
         #Log.log(list_dictionary)
         complete_dictionary.update(list_dictionary)
     #TextActions.print_dictionary(complete_dictionary)
     return complete_dictionary