1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-28 19:40:54 +00:00

Python 3 support and minor fixes.

This commit is contained in:
Guillaume Ayoub 2010-01-15 16:04:03 +01:00
parent 4a0d3936e8
commit 4ee09cf817
11 changed files with 66 additions and 70 deletions

View file

@ -22,12 +22,9 @@
Calendar storage support configuration.
"""
from .. import config
from radicale import config
_support = __import__(config.get("support", "type"), locals(), globals())
append = _support.append
calendars =_support.calendars
mkcalendar =_support.mkcalendar
read = _support.read
remove = _support.remove
def load():
module = __import__("radicale.support", globals(), locals(),
[config.get("support", "type")])
return getattr(module, config.get("support", "type"))