Skip to content

Add configuration parameters for handlers #7

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

Open
fmezou opened this issue May 6, 2017 · 1 comment
Open

Add configuration parameters for handlers #7

fmezou opened this issue May 6, 2017 · 1 comment
Labels
enhancement New feature or request

Comments

@fmezou
Copy link
Owner

fmezou commented May 6, 2017

Rational

The handlers do not have any configuration parameters. It would be useful to tune some handlers by setting some attributes (locale, target...) in the configuration file (application section).

@fmezou fmezou added the enhancement New feature or request label May 6, 2017
@fmezou
Copy link
Owner Author

fmezou commented Jan 14, 2018

Solution

One way is to use an arbitrary argument lists for the init method of the cots.core.BaseProduct class, and pass all key value pairs read (only the application section) from the configuration file to the cots.core.get_handler function. This latter use the qualname item and pass all the paramters (**kwargs) to the init method.

@fmezou fmezou transferred this issue from another repository Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant