Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • convert_json_file: Will convert .nmis file into a json file. It has 3 options: 
    • backup: t/f: True by default. Will move the .nmis file to the archive_converted_files directory. 
    • replace_qr: t/f: True by default. Will replace the qr// by "" reading the file content as a string. Please note, if the file has non quoted qr, the conversion to json will fail, with a message: 

      Error converting json file: encountered object '(?^:Category:\((\d+)\); User:([\w\\ ]{0,256}); (.+)$)', but neither allow_blessed ...


    • replace_nmis: t/f: True by default. Will replace the ".nmis" by ".json" reading the file content as a string. 
    • force: t/f: False by default. Will override the .json file if is exist previously when true. 
    • replace_copy: t/f: False by default. Will replace qr// for "//" instead of "" in copy* elements. This is a convention to know when an element is a regular expression or not, in new opEvents version using json files for EventRules.json file. 
  • convert_dir_file: Will scan a directory and convert nmis files to json files, using backup, replace_qr and replace_nmis to true but for EventActions will do an exception. This file has quoted qr so it won't need to be converted. 

...