Ticket #1820 (closed enhancement: fixed)

Opened 2 years ago

Last modified 17 months ago

store configuration values in self.master.config

Reported by: dustin Owned by:
Priority: major Milestone: 0.8.6
Version: master Keywords:
Cc:

Description

The configuration dictionary should be available as attributes from self.master.config, so that any code that needs access to configuration values can just go get them.

Change History

comment:1 Changed 17 months ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 0.8.+ to 0.8.6

This is done:

commit b4fb9fbf2243db6d091202f58ced453483fecd29
Author: Dustin J. Mitchell <dustin@mozilla.com>
Date:   Sat Nov 12 00:32:16 2011 -0600

    Refactor configuration handling
    
    This moves configuration loading and checking out of the master, and
    into a new module.  Where possible, configuration is accessed directly
    in as many cases as possible, rather than being disseminated across the
    master at reconfiguration time.  For services that need to modify their
    behavior when reconfigured, the ReconfigurableServiceMixin defines a
    general method of notification, eliminating service-specific code from
    the master.
    
    Schedulers are still stopped and re-started at every reconfiguration;
    this may be changed in the future.
Note: See TracTickets for help on using tickets.