25 lines
646 B
Python
25 lines
646 B
Python
"""
|
|
app/tenancy/__init__.py
|
|
-----------------------
|
|
Public exports for the tenancy package.
|
|
|
|
MT-1: RoutingSession, init_tenancy, TenantContext
|
|
MT-5: feature_required, quota_soft_check, check_quota, check_feature
|
|
"""
|
|
|
|
from app.tenancy.routing import RoutingSession
|
|
from app.tenancy.middleware import init_tenancy
|
|
from app.tenancy.context import TenantContext
|
|
from app.tenancy.gates import feature_required, quota_soft_check
|
|
from app.tenancy.quota import check_quota, check_feature
|
|
|
|
__all__ = [
|
|
'RoutingSession',
|
|
'init_tenancy',
|
|
'TenantContext',
|
|
'feature_required',
|
|
'quota_soft_check',
|
|
'check_quota',
|
|
'check_feature',
|
|
]
|