pyre.framework.Priority¶
Module Contents¶
-
class
pyre.framework.Priority.Priority¶ An intelligent enum of configuration priorities
Each source of configuration information is assigned to a category, and each category has a priority. The priority is used to decide whether a the value of a trait should be modified based on information from the source at hand: higher priority settings override lower ones.
Within a category, each configuration setting is assigned a rank, based on the order it was encountered. This kind of logic, for example, assures that command line arguments that appear later in the command line override earlier ones
This class provides a resting place for the priority categories, and a total ordering so comparisons can be made
-
category¶
-
uninitialized¶
-
defaults¶
-
boot¶
-
package¶
-
persistent¶
-
user¶
-
command¶
-
explicit¶
-
framework¶
-
collator¶
-
__slots__= ['rank']¶
-
__eq__(self, other)¶
-
__lt__(self, other)¶
-
__str__(self)¶
-
-
pyre.framework.Priority.categories¶
-
class
pyre.framework.Priority.Uninitialized¶ Bases:
pyre.framework.Priority.PriorityCategory for unspecified priorities; meant to be used as default values for arguments to functions
-
name= uninitialized¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.Defaults¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of the default values of traits, i.e. the values in the class declarations
-
name= defaults¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.Boot¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of values assigned while the framework is booting
-
name= boot¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.Package¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of values assigned while package configurations are being retrieved
-
name= package¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.Persistent¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of values retrieved from an application supplied persistent store where components record their configurations
-
name= persistent¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.User¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of values assigned during the processing of user configuration events
-
name= user¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.Command¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of values assigned during the processing of the command line
-
name= command¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.Explicit¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of values assigned explicitly by the user program
-
name= explicit¶
-
category¶
-
__slots__= []¶
-
-
class
pyre.framework.Priority.Framework¶ Bases:
pyre.framework.Priority.PriorityCategory for the priorities of read-only values assigned by the framework
-
name= framework¶
-
category¶
-
__slots__= []¶
-
-
pyre.framework.Priority.uninitialized¶
-
pyre.framework.Priority.defaults¶
-
pyre.framework.Priority.boot¶
-
pyre.framework.Priority.package¶
-
pyre.framework.Priority.command¶
-
pyre.framework.Priority.user¶
-
pyre.framework.Priority.explicit¶
-
pyre.framework.Priority.framework¶