Rewrite the printer Zabbix integration (Bearer auth, host-by-IP, tag-based supply lookup, ping) and replace the hardcoded toner table with a modelsupplies table + CRUD + seed. Add mock Zabbix server, live test harness, and the Playwright screenshot tooling. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
520 B
Python
21 lines
520 B
Python
"""Printers plugin models."""
|
|
|
|
from .printer_extension import PrinterData # Legacy model for Machine-based architecture
|
|
from .printer import Printer, PrinterType # New Asset-based models
|
|
from .model_supply import ( # data-driven model -> toner/drum/waste mapping
|
|
ModelSupply,
|
|
SUPPLY_TYPES,
|
|
SUPPLY_COLORS,
|
|
CAPACITY_TIERS,
|
|
)
|
|
|
|
__all__ = [
|
|
'PrinterData', # Legacy
|
|
'Printer', # New
|
|
'PrinterType', # New
|
|
'ModelSupply',
|
|
'SUPPLY_TYPES',
|
|
'SUPPLY_COLORS',
|
|
'CAPACITY_TIERS',
|
|
]
|