Feature #195

Tasks #292: Fix communication with C++ baseline

Integrate Option File Parsing

Added by J. Wienke about 13 years ago. Updated almost 13 years ago.

Status:ResolvedStart date:02/17/2011
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:PythonEstimated time:3.00 hours
Target version:0.2

Description

.rsbrc files + environment + command line?

Associated revisions

Revision 634738ac
Added by J. Moringen almost 13 years ago

Initial version of configuration mechanism
refs #195
  • rsb/__init__.py: Subscriber and Publisher do not require a fully
    prepared Router object anymore; instead, a ParticipantConfig object
    can be supplied
  • rsb/util.py: added ParticipantConfig class which stores
    configuration options and handles retrieving options form different
    sources
  • rsb/rsbspread/__init__.py: the constructor of SpreadPort now accepts
    a dictionary of configuration options and extracts the port and
    hostname of the Spread daemon from it

Revision b3f2165a
Added by J. Moringen almost 13 years ago

Adapted unit tests to account for configuration changes
refs #195
  • test/rsbspreadtest.py: constructor Publisher and Subscriber object
    differently to account for changes introduced for configuration API

Revision 0e9b79d8
Added by J. Moringen almost 13 years ago

Better parsing of configuration options in rsb/__init__.py
refs #195
  • rsb/__init__.py: enabled options of transports defaults to false;
    honor quality of service options; strip whitespace form
    configuration option values

Revision 4daefeb0
Added by J. Moringen almost 13 years ago

Implemented ParticipantConfig test cases in test/coretest.py
refs #195
  • test/coretest.py: implemented test cases testFromFile and
    testFromEnvironment in suite ParticipantConfig

Revision 3b1b6a22
Added by J. Moringen almost 13 years ago

Added test config file test/smoke-test.conf
refs #195
  • test/smoke-test.conf: new file; test config file for test case
    test.utiltest.EnumTest

Revision 331fdaca
Added by J. Moringen almost 13 years ago

Added test case default option values in test/coretest.py
refs #195
  • rsb/__init__.py: added fromDict method to ParticipantConfig class
  • test/coretest.py: added test case testOverwritingDefaults to test
    suite ParticipantConfigTest

History

#1 Updated by J. Wienke almost 13 years ago

  • Parent task set to #292

#2 Updated by J. Wienke almost 13 years ago

  • Target version set to 0.2

#3 Updated by J. Moringen almost 13 years ago

Specification is at Configuration. For version 0.2:
  • rsb.conf
  • Environment variables
  • Commandline

#4 Updated by J. Wienke almost 13 years ago

  • Assignee changed from J. Wienke to J. Moringen

#5 Updated by J. Moringen almost 13 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 60

#6 Updated by J. Moringen almost 13 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 60 to 100

The only option that is not respected is errorhandling.onhandlererror.

Also available in: Atom PDF