You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably a complete ripoff of existing options such as the ZCA. I should blame moraes for bugging me about it. :)
Registry of "utilities"
Event system with generic signals and special signals for things like when a "utility" has been created, with conditional subscription based on instance checking
Dependency injection of utilities to event subscribers based on instance checking
# an instance of a jinja environment has been created and registered@created(jinja2.Environment)defconfigure_line_statements(env): # pass the instance as the first argumentenv.line_statement_prefix='#'# a request has started# find all utilities in the registry matching the annotated types in the function signature# call the function once for each combination of the found utilities@started(RequestEvent)deflog_request(log: logbook.Logger, request: werkzeug.BaseRequest):
log.info('{request.method} {request.path}', request=request)
The text was updated successfully, but these errors were encountered:
Probably a complete ripoff of existing options such as the ZCA. I should blame moraes for bugging me about it. :)
The text was updated successfully, but these errors were encountered: