Carsten Senger
2011-01-05 1822100256ce5077dbeb1886c833ef4a1f9538a3
add model_path_tuple for backward compatibility
1 files modified
3 ■■■■■ changed files
pyramid/traversal.py 3 ●●●●● patch | view | raw | blame | history
pyramid/traversal.py
@@ -352,6 +352,9 @@
    """
    return tuple(_resource_path_list(resource, *elements))
model_path_tuple = resource_path_tuple  # b/w compat
def _resource_path_list(resource, *elements):
    """ Implementation detail shared by resource_path and resource_path_tuple"""
    path = [loc.__name__ or '' for loc in lineage(resource)]