-
Notifications
You must be signed in to change notification settings - Fork 82
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
configurable request_history params #206
Conversation
Ok I had a chance to review this and it looks like it's about ready to be merged. I have a few requests.
|
That all makes sense. Will put this on my to-do list, then comment when it's done. |
I integrated the requests. Can rebase to squash the two commits into one, if that's better. The big things to note: • we now need an • we also need to handle |
Would you mind merging in the latest master? I'd pushed some changes previously for the |
sure. on it now. |
…config_max_history Conflicts: docs/index.rst pyramid_debugtoolbar/__init__.py
So I've got this mostly working in 48323c8 I updated the tests to handle my defaults and the new includes The only failure right now is in test_toolbar.py / test_it_path_cannot_be_decoded This is broken in trunk too. The problem is that the request doesn't have a registry in this view (and it's trying to pull the registry.settings). I'm not sure why this request doesn't have a registry though. |
All tests pass on my mac on both branches. Can you paste the traceback? edit sorry I lied, they pass on your branch but not on master which is good enough for me. |
This is the error I'm getting off
I fixed the second failure (test_it) in my branch. |
The only error I see is with the |
The pull is passing in Travis, so fixing the test doesn't look right. It seems like I had a bad pyramid install. The env i was using still had 1.3a6. It was failing on that test (and only that test). On a fresh env with 1.5.2, everything passed. I tried to figure out what the minimum pyramid version should be, and all the 1.3.x pass (even the 1.3a6 that was broken on mine) The 1.2 branch has multiple failures on the testsuite |
configurable request_history params
Good catch, maybe we should be sure things are still kosher with older versions. I doubt anyone has been doing that work. Thank you for this PR, merged it now. |
This is regarding #205
I have a few notes:
__init__.py
; it was starting to get hard to understand what was/wasn't imported.utils
--get_application_registry
. An issue I ran into, is that the actual settings are located in two distinct areas, depending on where you access the request.request.registry.settings
.config.make_wsgi_app()
). The settings are still located in the "end-user's" application, but this is now inrequest.registry.parent_registry.settings
The
button_style
inrequest_view
was broken because of this (now fixed).