mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Refactoring
This commit is contained in:
parent
389a6b9906
commit
bfe4332ac5
5 changed files with 6 additions and 6 deletions
|
@ -40,8 +40,8 @@ from xml.etree import ElementTree as ET
|
|||
import defusedxml.ElementTree as DefusedET
|
||||
import pkg_resources
|
||||
|
||||
from radicale import (auth, httputils, log, pathutils, rights, storage, web,
|
||||
xmlutils, hook)
|
||||
from radicale import (auth, hook, httputils, log, pathutils, rights, storage, web,
|
||||
xmlutils)
|
||||
from radicale.app.delete import ApplicationDeleteMixin
|
||||
from radicale.app.get import ApplicationGetMixin
|
||||
from radicale.app.head import ApplicationHeadMixin
|
||||
|
|
|
@ -28,8 +28,8 @@ import vobject
|
|||
from radicale import app, httputils
|
||||
from radicale import item as radicale_item
|
||||
from radicale import pathutils, rights, storage, xmlutils
|
||||
from radicale.log import logger
|
||||
from radicale.hook import HookNotificationItem, HookNotificationItemTypes
|
||||
from radicale.log import logger
|
||||
|
||||
MIMETYPE_TAGS = {value: key for key, value in xmlutils.MIMETYPES.items()}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ import string
|
|||
from collections import OrderedDict
|
||||
from configparser import RawConfigParser
|
||||
|
||||
from radicale import auth, rights, storage, web, hook
|
||||
from radicale import auth, hook, rights, storage, web
|
||||
|
||||
DEFAULT_CONFIG_PATH = os.pathsep.join([
|
||||
"?/etc/radicale/config",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import json
|
||||
from enum import Enum
|
||||
|
||||
from radicale import utils
|
||||
from enum import Enum
|
||||
|
||||
INTERNAL_TYPES = ("none", "rabbitmq")
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import pika
|
||||
|
||||
from radicale.hook import HookNotificationItem
|
||||
from radicale import hook
|
||||
from radicale.hook import HookNotificationItem
|
||||
|
||||
|
||||
class Hook(hook.BaseHook):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue