[Calypso] [PATCH] Support the current-user-principal property (RFC5397).
Jelmer Vernooij
jelmer at debian.org
Mon Mar 31 01:48:11 PDT 2014
Hi Guido,
On Mon, Mar 31, 2014 at 09:19:16AM +0200, Guido Günther wrote:
> # diff --git a/calypso/config.py b/calypso/config.py
> # index 20c96ef..b66bd91 100644
> # --- a/calypso/config.py
> # +++ b/calypso/config.py
> # @@ -47,6 +47,7 @@ INITIAL_CONFIG = {
> # "key": "/etc/apache2/ssl/server.key",
> # "pidfile": "/var/run/calypso.pid",
> # "base_prefix": "/",
> # + "user_principal": "/+%(user)s/",
>
> We already assume that the first part of the path is the owner for
> permision checks (see url_to_owner and acl/httpasswd). Shouldn't we just
> set the current-user-principal to the first path component as well? We
> could then use this to query home-collection like:
>
> ~/.config/calypso/calendars/
> `- princ1/
> `- collection1
> `- collection2
> `- princ2/
> `- collectionfoo
> `- collectionbar
>
> by simply retrurning all git repositories below princ1/ as
> home-collections for each user.
That sounds reasonable. DAVDroid doesn't seem to like this kind of
layout, but perhaps that is something I should be addressing in
DAVDroid instead.
Cheers,
Jelmer
--
Jelmer Vernooij <jelmer at debian.org>
Debian Developer http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: </pipermail/calypso/attachments/20140331/4672c31e/attachment.sig>
More information about the Calypso
mailing list