Files
NetBox-Customer-Export/netbox_customer_export/__init__.py
T
MrBlakeandClaude Opus 5.5 e3c31b6312 feat: topology on its own landscape page, as large as possible
The topology image was shrunk inside the flex container used for rack
images. Each site's topology now gets a dedicated A4 landscape page
(named @page in PDF, landscape section in Word) with the section and
site headings, scaled to the full usable width or height depending on
its aspect ratio. The document switches back to portrait only when more
content follows, so no blank pages are produced. The TOC includes
headings on landscape pages.

Also fix Word exports without a template using US Letter instead of A4.

Bump version to 0.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 15:03:11 +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.6.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