Files
NetBox-Customer-Export/netbox_customer_export/__init__.py
T
MrBlakeandClaude Opus 5.5 5b2d68356c feat: optional device images in rack elevations, HTML preview in new tab
- New export option "Gerätebilder anzeigen": the SVG is rendered with
  include_images and the /media/ image links are replaced by embedded
  data URIs, since Word, WeasyPrint and SVG-as-image cannot load
  login-protected files. The Pillow PNG renderer draws the front/rear
  images too, with the device name on a dark label.
- Custom rack_svg_renderer adapters receive images=..., older adapters
  without that parameter keep working.
- The HTML preview now opens in a new browser tab.

Bump version to 0.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 13:56:39 +02:00

28 lines
1.0 KiB
Python

from netbox.plugins import PluginConfig
class CustomerExportConfig(PluginConfig):
name = "netbox_customer_export"
verbose_name = "Kunden-Export"
description = "Kundendokumentation als PDF oder Word exportieren"
version = "0.3.0"
author = "Claude"
base_url = "customer-export"
min_version = "4.6.8"
max_version = "4.7.99"
default_settings = {
# Branding: Einzelschlüssel (company_name, logo_path, primary_color, docx_template, …)
# gelten global; "brandings" definiert mehrere Profile. Defaults siehe branding.py.
"brandings": None,
# Dotted path zu einer Funktion fn(rack, face, user) -> SVG-String,
# z.B. der Offline-Renderer aus Netbox-Utilities. None = NetBox-eigener Renderer.
"rack_svg_renderer": None,
# Lizenzquellen (Plugin-Modelle), None = Auto-Erkennung (netbox_lifecycle)
"license_sources": None,
# Darf der Techniker WLAN-PSKs o.ä. mit exportieren?
"allow_secrets": False,
}
config = CustomerExportConfig