Files
rengine/shared/services/__init__.py
T
Yogesh Ojha 69239333bc Refactor validation and DNS tools, implementation of onboarding wizard
- Added `clean_name` function to `validation.py` for name validation with max length.
- Simplified docstrings in `dnsx` client, parser, and service files for clarity.
- Enhanced error handling in `ViewDNSService` to prevent disabling keys on rate limits.
- Improved WHOIS service to handle concurrent inserts gracefully with integrity checks.
- Updated `Settings` class in worker config to inherit from `BaseAppSettings`.
- Added new dependencies in `pyproject.toml` for `apprise` and `cryptography`.
2026-06-21 21:56:20 +05:30

22 lines
568 B
Python

__all__ = [
"get_or_create_organization",
"get_or_create_tag",
]
def __getattr__(name: str):
if name == "get_or_create_organization":
from shared.services.organization import ( # noqa: PLC0415
get_or_create_organization,
)
return get_or_create_organization
if name == "get_or_create_tag":
from shared.services.tag import ( # noqa: PLC0415
get_or_create_tag,
)
return get_or_create_tag
msg = f"module {__name__!r} has no attribute {name!r}"
raise AttributeError(msg)