-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Change app initialization from only v_2_2_1 to support differen…
…t versions, but with one version for one app.
- Loading branch information
1 parent
5f488e2
commit c76a273
Showing
4 changed files
with
64 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from py_ocpi.modules.versions.enums import VersionNumber | ||
|
||
from .v_2_2_1 import ROUTERS_DICT as V_2_2_1_ROUTERS_DICT | ||
from .v_2_1_1 import ROUTERS_DICT as V_2_1_1_ROUTERS_DICT | ||
|
||
|
||
ROUTERS = { | ||
VersionNumber.v_2_2_1: V_2_2_1_ROUTERS_DICT, | ||
VersionNumber.v_2_1_1: V_2_1_1_ROUTERS_DICT, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from py_ocpi.routers import v_2_1_1_cpo_router, v_2_1_1_emsp_router | ||
from py_ocpi.modules.versions import versions_v_2_1_1_router | ||
|
||
ROUTERS_DICT = { | ||
"version_router": versions_v_2_1_1_router, | ||
"cpo_router": v_2_1_1_cpo_router, | ||
"emsp_router": v_2_1_1_emsp_router, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from py_ocpi.routers import v_2_2_1_cpo_router, v_2_2_1_emsp_router | ||
from py_ocpi.modules.versions import versions_v_2_2_1_router | ||
|
||
ROUTERS_DICT = { | ||
"version_router": versions_v_2_2_1_router, | ||
"cpo_router": v_2_2_1_cpo_router, | ||
"emsp_router": v_2_2_1_emsp_router, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters