Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adjust API level on swagger and set API doc expansion by default
[pti/o2.git]
/
o2ims
/
service
/
handlers.py
diff --git
a/o2ims/service/handlers.py
b/o2ims/service/handlers.py
index
c80ea6f
..
830e1ff
100644
(file)
--- a/
o2ims/service/handlers.py
+++ b/
o2ims/service/handlers.py
@@
-16,9
+16,10
@@
from __future__ import annotations
# from dataclasses import asdict
from typing import List, Dict, Callable, Type
from __future__ import annotations
# from dataclasses import asdict
from typing import List, Dict, Callable, Type
+from o2ims.service.auditor import dms_handler
# TYPE_CHECKING
from o2ims.domain import commands, events
# TYPE_CHECKING
from o2ims.domain import commands, events
-# ocloud
+from o2ims.service.auditor import ocloud_handler
# if TYPE_CHECKING:
# from . import unit_of_work
# if TYPE_CHECKING:
# from . import unit_of_work
@@
-33,4
+34,6
@@
EVENT_HANDLERS = {
COMMAND_HANDLERS = {
COMMAND_HANDLERS = {
+ commands.UpdateOCloud: ocloud_handler.update_ocloud,
+ commands.UpdateDms: dms_handler.update_dms
} # type: Dict[Type[commands.Command], Callable]
} # type: Dict[Type[commands.Command], Callable]