[Calypso] [PATCH] Support the current-user-principal property (RFC5397).

Guido Günther agx at sigxcpu.org
Mon Mar 31 00:19:16 PDT 2014


Hi Jelmer,

# 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.

Cheers,
 -- Guido


More information about the Calypso mailing list