Skip to content

fix: replace zero-arg super() with explicit form - #157

Merged
jensens merged 2 commits into
collective:mainfrom
mamoep:fix-controlpanel
Jul 24, 2026
Merged

jensens merged 2 commits into
collective:mainfrom
mamoep:fix-controlpanel

Conversation

@mamoep

@mamoep mamoep commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Zero-arg super() relies on a compile-time class cell that becomes stale once @plumbing(CSRFProtectionBehavior) creates a new class object. This caused a TypeError at runtime when the control panel view was rendered. Explicit super(LDAPControlPanel, self) resolves the class from the module namespace at call time instead.

fixes #156

mamoep added 2 commits July 24, 2026 13:26
…save()

Zero-arg super() relies on a compile-time __class__ cell that becomes
stale once @plumbing(CSRFProtectionBehavior) creates a new class
object. This caused a TypeError at runtime when the control panel
view was rendered. Explicit super(LDAPControlPanel, self) resolves
the class from the module namespace at call time instead.
@jensens
jensens merged commit 4ae3a8d into collective:main Jul 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception when clicking "Save" on ControlPanel

2 participants