[Calypso] [PATCH 1/2] Remove special-casing of item URL path, instead rely on property.

Guido Günther agx at sigxcpu.org
Mon May 16 02:01:27 PDT 2016


On Mon, May 09, 2016 at 08:35:31PM +0000, Jelmer Vernooij wrote:
> From: Jelmer Vernooij <jelmer at jelmer.uk>
> 
> ---
>  calypso/xmlutils.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/calypso/xmlutils.py b/calypso/xmlutils.py
> index e01fcb0..d692b32 100644
> --- a/calypso/xmlutils.py
> +++ b/calypso/xmlutils.py
> @@ -146,7 +146,7 @@ def propfind(path, xml_request, collection, depth, context):
>          multistatus.append(response)
>  
>          href = ET.Element(_tag("D", "href"))
> -        href.text = collection_name if is_collection else "/".join([collection_name, item.name])
> +        href.text = item.urlpath
>          response.append(href)

Isn't this part of

    [PATCH 4/4] Add a urlpath attribute rather than special casing in propfind().

Cheers,
 -- Guido


More information about the Calypso mailing list