Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a schema module #28

Closed
dnephin opened this issue Feb 20, 2013 · 1 comment · Fixed by #29
Closed

Add a schema module #28

dnephin opened this issue Feb 20, 2013 · 1 comment · Fixed by #29

Comments

@dnephin
Copy link
Owner

dnephin commented Feb 20, 2013

The current getters interface does not make it obvious that what you're getting is a ValueProxy. What you're really doing is defining a config schema for a class, which can be reloaded. A better (higher level) interface for this might be a more declarative approach:

@ConfigSchema
class SchemaA(object):

     namespace=  'the_namespace'
     path = 'something.A'

     field_a = ConfValue(Int, default=1)
     field_b = ConfValue(Float)
@dnephin dnephin mentioned this issue Mar 3, 2013
@dnephin
Copy link
Owner Author

dnephin commented Apr 19, 2013

A basic version of this has been added. If it proves to be useful, we can expand on it.

@dnephin dnephin closed this as completed Apr 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant