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¶
Functions¶
|
Performs the conversion on a file with the provided options. |
|
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()¶