gavo.user.common module

Common functionality for the DC user interface.

gavo.user.common.getMatchingFunction(funcSelector, functions, parser)[source]

returns the module name and a function name within the module for the function selector funcSelector.

The function will exit if funcSelector is not a unique prefix within functions.

gavo.user.common.getPertainingDDs(rd, selectedIds)[source]

returns a list of dds on which imp or drop should operate.

By default, that’s the “auto” dds of rd. If ddIds is not empty, it is validated that all ids mentioned actually exist.

Finally, if no DDs are selected but DDs are available, an error is raised.