diff options
| author | Chris McDonough <chrism@plope.com> | 2012-02-18 15:20:27 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-02-18 15:20:27 -0500 |
| commit | 44f585291d5f98892a94b3dafca42a70c4f3fc02 (patch) | |
| tree | f1776fcf05c4913d99bb5dc15cbd6f605b19d53d | |
| parent | 118ea0c512a82d3dfcc6fe283afcd30818c14993 (diff) | |
| download | pyramid-44f585291d5f98892a94b3dafca42a70c4f3fc02.tar.gz pyramid-44f585291d5f98892a94b3dafca42a70c4f3fc02.tar.bz2 pyramid-44f585291d5f98892a94b3dafca42a70c4f3fc02.zip | |
comment intent
| -rw-r--r-- | pyramid/traversal.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyramid/traversal.py b/pyramid/traversal.py index 328fde4a5..75931557e 100644 --- a/pyramid/traversal.py +++ b/pyramid/traversal.py @@ -753,8 +753,10 @@ class ResourceURL(object): if physical_path.startswith(vroot_path): virtual_path = physical_path[len(vroot_path):] - self.virtual_path = virtual_path - self.physical_path = physical_path + self.virtual_path = virtual_path # IResourceURL attr + self.physical_path = physical_path # IResourceURL attr + + # bw compat self.resource = resource self.context = resource # bw compat alias for IContextURL compat self.request = request |
