nordabiz/utils/__init__.py
Maciej Pienczyn ce7c78bda9 feat(notifications): Add notifications for releases and announcements
- notify_all_users_release(): Notify all users about new system version
- notify_all_users_announcement(): Notify all users about new announcement
- Auto-send notifications when admin publishes an announcement
- New admin endpoint POST /admin/notify-release for manual release notifications
- Category-specific icons for announcement notifications

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 14:22:44 +01:00

31 lines
872 B
Python

"""
Utils Package
=============
Shared utilities for NordaBiz application.
"""
from .decorators import admin_required, verified_required, company_owner_or_admin
from .helpers import sanitize_input, validate_email, validate_password, ensure_url
from .notifications import (
create_notification,
create_news_notification,
create_message_notification,
create_event_notification,
notify_all_users_release,
notify_all_users_announcement
)
from .analytics import (
get_or_create_analytics_session,
track_page_view_for_request,
get_current_page_view_id,
set_current_page_view_id,
cleanup_page_view_id,
get_free_tier_usage,
get_brave_api_usage,
log_brave_api_call
)
from .context_processors import register_context_processors
from .error_handlers import register_error_handlers
from .middleware import register_middleware