Package gavo :: Package user :: Module common
[frames] | no frames]

Module common

source code

Common functionality for the DC user interface.

Functions
 
getMatchingFunction(funcSelector, functions, parser)
returns the module name and a funciton name within the module for the function selector funcSelector.
source code
 
getPertainingDDs(rd, selectedIds)
returns a list of dds on which imp or drop should operate.
source code
Variables
  __package__ = 'gavo.user'
Function Details

getMatchingFunction(funcSelector, functions, parser)

source code 

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

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

getPertainingDDs(rd, selectedIds)

source code 

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.