We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Part of #23
Right now we handle config very roughly. For example let's take:
auth_default_roles = db.get_mquery_config_key("auth_default_roles") if auth_default_roles is None: default_roles = [] else: default_roles = [ role.strip() for role in auth_default_roles.split(",") ]
I think about something like:
default_roles = db.config.auth_default_roles
Where the auth_default_roles is a property that does the magic (parsing and validation)
auth_default_roles
The text was updated successfully, but these errors were encountered:
in other words:
Change all instances of db.get_mquery_config(...) to something like db.get_config that returns a well-typed Python object.
db.get_mquery_config(...)
db.get_config
Sorry, something went wrong.
michalkrzem
No branches or pull requests
Part of #23
Right now we handle config very roughly. For example let's take:
I think about something like:
Where the
auth_default_roles
is a property that does the magic (parsing and validation)The text was updated successfully, but these errors were encountered: