-
Notifications
You must be signed in to change notification settings - Fork 2
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
current user refresh #115
current user refresh #115
Conversation
47fa116
to
046cf15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the comment in catalog.py
def __init__(self): | ||
super().__init__() | ||
self.jinja_env.undefined = jinja2.Undefined | ||
def __init__( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to overwrite the constructor? It seems that the only line modified is 51 and that is done to pass the current_app.
The app is used on 101:
if name in self.jinja_env.app.template_context_processors
can it be changed to if name in current_app.template_context_processors
?
Also, we need tests for this functionality (register test blueprint with context processor and make sure it gets called)
…irst-build' of https://github.com/oarepo/oarepo-ui into alzbetapokorna/be-193-fix-current_user-not-in-sync-on-first-build
…tapokorna/be-193-fix-current_user-not-in-sync-on-first-build
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
No description provided.