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

Change ChatBot filters parameter to import classes from the string path #285

Closed
gunthercox opened this issue Sep 7, 2016 · 0 comments
Closed
Labels

Comments

@gunthercox
Copy link
Owner

Currently, filters classes are being set like this:

ChatBot(
    # ...
    filters=[
        FilterClass1,
        FilterClass2
    ]
)

They should be changed to use the string import path to the module like all of the other module parameters:

ChatBot(
    # ...
    filters=[
        'path.to.filter.module.FilterClass1',
        'path.to.filter.module.FilterClass2'
    ]
)

This change should be made before the next release since it will be the first release including the filter class options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant