Functions to set context for the logging and error checking. More...
Functions | |
| def | PyPO.Config.setContext (_context=None) |
| Set the context in which PyPO is run. More... | |
| def | PyPO.Config.setOverride (_override=None) |
| Set the override parameter. More... | |
Variables | |
| string | PyPO.Config.context = "S" |
Functions to set context for the logging and error checking.
| def PyPO.Config.setContext | ( | _context = None | ) |
Set the context in which PyPO is run.
If the context is set to "S", PyPO assumes it is run in scripting mode and use the regular output streams and methods. If the context is set to "G", PyPO assumes it is run in GUI mode and will not output to the standard output. Also, PyPO will use special GUI methods.
| def PyPO.Config.setOverride | ( | _override = None | ) |
Set the override parameter.
If the parameter is set to True, PyPO will overwrite entries with identical names. If False, PyPO will append the number of occurences of the name to the name, so that there are no duplicates anymore.