5 if ".data.xml" in input_file:
6 print(f
"Formatting database file {input_file}")
10 testobj = dal.Service(
"Reformat-test-obj")
11 oks_kernel.update_dal(testobj)
12 oks_kernel.destroy_dal(testobj)
15 elif ".schema.xml" in input_file:
16 print(f
"Formatting schema file {input_file}")
18 oks_kernel = oks.OksKernel()
19 schema = oks_kernel.load_schema(str(input_file))
21 oks_kernel.save_as_schema(str(input_file), schema)
24 print(f
"Don't know how to handle file {input_file}")