scenic.core.specifiers

Specifiers and associated objects.

Summary of Module Members

Classes

PropertyDefault

A default value, possibly with dependencies.

Specifier

Specifier providing a value for a property given dependencies.

Member Details

class Specifier(prop, value, deps=None, optionals={}, internal=False)[source]

Specifier providing a value for a property given dependencies.

Any optionally-specified properties are evaluated as attributes of the primary value.

applyTo(obj, optionals)[source]

Apply specifier to an object, including the specified optional properties.

class PropertyDefault(requiredProperties, attributes, value)[source]

A default value, possibly with dependencies.

resolveFor(prop, overriddenDefs)[source]

Create a Specifier for a property from this default and any superclass defaults.