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

remove the deprecated IContextURL #2822

Merged

Conversation

mmerickel
Copy link
Member

@mmerickel mmerickel commented Nov 19, 2016

This PR drops support for the IContextURL interface that was deprecated in 1.3. The only part that was pretty confusing for me was the reimplementation of pyramid.traversal.virtual_root which seems somewhat different than before. It no longer consults the registered IResourceURL object for the given resource and thus the root is not configurable. I really have no idea if this is okay.

It'd be really great if @mcdonc could review this considering he originally deprecated this interface and probably understands the purpose of the API much better than I.

@mmerickel mmerickel force-pushed the remove-deprecated-icontexturl branch from 3bc1745 to b1e4b7f Compare November 19, 2016 09:26
@mmerickel mmerickel force-pushed the remove-deprecated-icontexturl branch from b1e4b7f to 07a6e64 Compare November 20, 2016 21:39
@mmerickel mmerickel force-pushed the remove-deprecated-icontexturl branch from 07a6e64 to 7ba9075 Compare November 22, 2016 05:32
@mmerickel
Copy link
Member Author

Updated this with an attempt at using virtual_path and physical_path from the custom IResourceURL for an object in order to find the virtual root. I think this probably works.

@digitalresistor
Copy link
Member

I am not as familiar with this part of the code base. From just a discerning eye and looking over the logic, it looks good to me.

@digitalresistor digitalresistor merged commit 01c3afa into Pylons:master Dec 15, 2016
digitalresistor added a commit that referenced this pull request Dec 15, 2016
@mmerickel mmerickel deleted the remove-deprecated-icontexturl branch November 29, 2020 03:11
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 this pull request may close these issues.

2 participants