Configuration and Startup

class vistrails.core.configuration.ConfigurationObject(**kwargs)

A ConfigurationObject is an InstanceObject that respects the following convention: values that are not ‘present’ in the object should have value (None, type), where type is the type of the expected object.

ConfigurationObject exists so that the GUI can automatically infer the right types for the widgets.

allkeys()

Returns all options stored in this object.

check(key)

Returns False if key is absent in object, else returns the value.

has(key)

Returns whether key has a valid value in the object.

keys()

Returns all public options stored in this object.

Public options are keys that do not start with a _

subscribe(field, callable_)

Call callable_ when the given field is set.

unsubscribe(field, callable_)

Remove the given callable_ from the observers of a field.