[tahoe-lafs-trac-stream] [tahoe-lafs] #1548: separate configuration from instantiation of Client instance

tahoe-lafs trac at tahoe-lafs.org
Mon Sep 26 14:08:47 PDT 2011


#1548: separate configuration from instantiation of Client instance
-----------------------------------+---------------------------
 Reporter:  zooko                  |          Owner:  zooko
     Type:  enhancement            |         Status:  new
 Priority:  major                  |      Milestone:  undecided
Component:  code-nodeadmin         |        Version:  1.9.0a2
 Keywords:  configuration cleanup  |  Launchpad Bug:
-----------------------------------+---------------------------
 I'm writing tests of configuration, and currently reading values from the
 configuration and using them is done inside the constructor of
 [source:trunk/src/allmydata/client.py?annotate=blame&rev=5232#L111
 Client]. I would rather there be some separate code that reads the values
 from configuration and does whatever validation and parsing is necessary
 and then passes all configuration options as arguments to the constructor
 of the class. This would be as prescribed in [wiki:CodingStandards the
 CodingStandards document].

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1548>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list