Update to schema definition syntax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
configglue |
Fix Released
|
Low
|
Ricardo Kirkner |
Bug Description
Currently sections are defined as local variables in the class scope
when defining schema. This approach works, but the sections are not
visually distinct from each other. Better approach would be to use
inner classes to achieve the scoping of options. An example:
class ASchema(Schema):
class database(Section):
host = StringOption()
port = IntOption()
class login(Section):
url = StringOption()
instead of current:
class ASchema(Schema):
database = ConfigSection()
login = ConfigSection()
login.url = StringOption()
Changed in configglue: | |
assignee: | nobody → Ricardo Kirkner (ricardokirkner) |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in configglue: | |
milestone: | none → 0.11 |
Changed in configglue: | |
status: | Fix Committed → Fix Released |