1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Use relative imports

This commit is contained in:
Guillaume Ayoub 2012-08-09 17:31:36 +02:00
parent 9f446cb261
commit 98bbe61f67
13 changed files with 35 additions and 33 deletions

View file

@ -32,7 +32,7 @@ Python 3.2 or newer is required for TLS.
import imaplib
from radicale import config, log
from .. import config, log
IMAP_SERVER = config.get("auth", "imap_auth_host_name")
IMAP_SERVER_PORT = config.get("auth", "imap_auth_host_port")

View file

@ -26,7 +26,8 @@ Authentication based on the ``python-ldap`` module
"""
import ldap
from radicale import config, log
from .. import config, log
BASE = config.get("auth", "ldap_base")

View file

@ -27,7 +27,7 @@ import grp
import pam
import pwd
from radicale import config, log
from .. import config, log
GROUP_MEMBERSHIP = config.get("auth", "pam_group_membership")

View file

@ -25,7 +25,7 @@ Authentication management.
import sys
from radicale import config, log
from .. import config, log
def load():

View file

@ -24,7 +24,7 @@ Courier-Authdaemon authentication.
import sys
import socket
from radicale import config, log
from .. import config, log
COURIER_SOCKET = config.get("auth", "courier_socket")

View file

@ -30,7 +30,7 @@ supported, but md5 is not (see ``htpasswd`` man page to understand why).
import base64
import hashlib
from radicale import config
from .. import config
FILENAME = config.get("auth", "htpasswd_filename")