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

All the methods which were moved from pre should be @staticmethod as they don't require/modify the Preprocessor object. #154

Closed
krystophny opened this issue Dec 10, 2021 · 0 comments · Fixed by #173

Comments

@krystophny
Copy link
Collaborator

All the methods which were moved from pre should be @staticmethod as they don't require/modify the Preprocessor object.

Alternatively it might even be better to move the whole Template-Preprocessor and it's associated functions (and maybe even the Preprocessor ABC) into their own file.

Originally posted by @Rykath in #153 (comment)

Rykath added a commit to Rykath/profit that referenced this issue Oct 17, 2022
test all Postprocessors
test the TemplatePreprocessor

fix redmod-team#154: make TemplatePreprocessor methods to classmethods where possible
 this allows someone to create a subclass of the Template Preprocessor
 and override just some methods
Component.wrap (Pre-, Postprocessor & Worker) now uses functools.wraps
 sets various metadata, e.g. the function name
@Rykath Rykath linked a pull request Oct 28, 2022 that will close this issue
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants