-
Notifications
You must be signed in to change notification settings - Fork 17
global: delay the url_map building #5
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
Conversation
krzysztof
commented
Dec 10, 2015
- Delays the url_map building until first resolve request.
|
@jirikuncar Will this introduce any problems ? I need this to build url_map where the path or host may contain config variables, e.g.: https://github.com/lnielsen/invenio-jsonschemas/blob/jsonresolver/invenio_jsonschemas/jsonresolver.py#L34-L43 |
|
@krzysztof it looks good. Please add label update: even better check that your plugin was not called during JSONResolver.init |
|
|
tests/demo/raising_hook.py
Outdated
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.
it probably needs isort
|
|
Wait, this test is still wrong... |
|
Ok, this one should test the lazy hook registration properly. |
tests/demo/raising_hook.py
Outdated
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.
you can remove the dead code
|
@krzysztof it looks good now. Please remove dead code so we can |
* BETTER Delays the url_map building until first resolve request. * Adds some missing docstrings. Signed-off-by: Krzysztof Nowak <k.nowak@cern.ch>
|
Removed dead code |