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.

Attributes

lookup

old_expr

Functions

replace_in_file(args, file)

Performs the conversion on a file with the provided options.

main()

Module Contents

viur_migrate.lookup
viur_migrate.old_expr = "conf['admin.color.primary']"
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()