viur_migrate

Naive ViUR3 project porting script with a simple search & replace mechanism using lookup table.

Replace the old conf[“dict-key”] syntax with the new conf.attribute syntax, which was introduced in #833.

Module Contents

Functions

replace_in_file(args, file)

Performs the conversion on a file with the provided options.

main()

Attributes

lookup

old_expr

viur_migrate.lookup
viur_migrate.old_expr
viur_migrate.replace_in_file(args, file)

Performs the conversion on a file with the provided options.

Parameters:
  • args (argparse.Namespace) –

  • file (pathlib.Path) –

viur_migrate.main()