From da421127403a71def2f3bcd3bcadbaf3b2232895 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 13 Jun 2011 22:32:47 +0200 Subject: [PATCH] Allow the ``None`` value for public and private calendars --- radicale/acl/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radicale/acl/__init__.py b/radicale/acl/__init__.py index f9166c3..8886ae2 100644 --- a/radicale/acl/__init__.py +++ b/radicale/acl/__init__.py @@ -30,7 +30,7 @@ from radicale import config PUBLIC_USERS = [] -PRIVATE_USERS = [None] +PRIVATE_USERS = [] def _config_users(name): @@ -40,7 +40,9 @@ def _config_users(name): stripped at the beginning and at the end of the values. """ - return (user.strip() for user in config.get("acl", name).split(",")) + for user in config.get("acl", name).split(","): + user = user.strip() + yield None if user == "None" else user def load():