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:
parent
9f446cb261
commit
98bbe61f67
13 changed files with 35 additions and 33 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue