Use relative imports
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -25,7 +25,7 @@ Authentication management.
|
||||
|
||||
import sys
|
||||
|
||||
from radicale import config, log
|
||||
from .. import config, log
|
||||
|
||||
|
||||
def load():
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user