forked from openwallet-foundation/acapy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from andrewwhitehead/sign-ack-merge
Merge with upstream refactoring
- Loading branch information
Showing
288 changed files
with
1,350 additions
and
1,622 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
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
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
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
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
@@ -1,53 +1,22 @@ | ||
"""Sane defaults for known message definitions.""" | ||
|
||
from .classloader import ClassLoader, ModuleLoadError | ||
from .messaging.protocol_registry import ProtocolRegistry | ||
|
||
from .messaging.actionmenu.message_types import ( | ||
CONTROLLERS as ACTIONMENU_CONTROLLERS, | ||
MESSAGE_TYPES as ACTIONMENU_MESSAGES, | ||
) | ||
from .messaging.basicmessage.message_types import MESSAGE_TYPES as BASICMESSAGE_MESSAGES | ||
from .messaging.connections.message_types import MESSAGE_TYPES as CONNECTION_MESSAGES | ||
from .messaging.discovery.message_types import MESSAGE_TYPES as DISCOVERY_MESSAGES | ||
from .messaging.introduction.message_types import MESSAGE_TYPES as INTRODUCTION_MESSAGES | ||
from .messaging.presentations.message_types import ( | ||
MESSAGE_TYPES as PRESENTATION_MESSAGES, | ||
) | ||
from .messaging.credentials.message_types import MESSAGE_TYPES as CREDENTIAL_MESSAGES | ||
from .messaging.trustping.message_types import MESSAGE_TYPES as TRUSTPING_MESSAGES | ||
from .messaging.routing.message_types import MESSAGE_TYPES as ROUTING_MESSAGES | ||
from .messaging.issue_credential.v1_0.message_types import ( | ||
MESSAGE_TYPES as V10_ISSUE_CREDENTIAL_MESSAGES | ||
) | ||
from .messaging.present_proof.v1_0.message_types import ( | ||
MESSAGE_TYPES as V10_PRESENT_PROOF_MESSAGES | ||
) | ||
|
||
from .messaging.problem_report.message import ( | ||
MESSAGE_TYPE as PROBLEM_REPORT, | ||
ProblemReport, | ||
) | ||
|
||
|
||
def default_protocol_registry() -> ProtocolRegistry: | ||
"""Protocol registry for default message types.""" | ||
registry = ProtocolRegistry() | ||
|
||
registry.register_message_types( | ||
ACTIONMENU_MESSAGES, | ||
BASICMESSAGE_MESSAGES, | ||
CONNECTION_MESSAGES, | ||
DISCOVERY_MESSAGES, | ||
INTRODUCTION_MESSAGES, | ||
PRESENTATION_MESSAGES, | ||
V10_PRESENT_PROOF_MESSAGES, | ||
CREDENTIAL_MESSAGES, | ||
V10_ISSUE_CREDENTIAL_MESSAGES, | ||
ROUTING_MESSAGES, | ||
TRUSTPING_MESSAGES, | ||
{PROBLEM_REPORT: ProblemReport}, | ||
) | ||
|
||
registry.register_controllers(ACTIONMENU_CONTROLLERS) | ||
packages = ClassLoader.scan_subpackages("aries_cloudagent.protocols") | ||
for pkg in packages: | ||
try: | ||
mod = ClassLoader.load_module(pkg + ".message_types") | ||
except ModuleLoadError: | ||
continue | ||
if hasattr(mod, "MESSAGE_TYPES"): | ||
registry.register_message_types(mod.MESSAGE_TYPES) | ||
if hasattr(mod, "CONTROLLERS"): | ||
registry.register_controllers(mod.CONTROLLERS) | ||
|
||
return registry |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.