Skip to content

Octoprint 2.0.0 fixes#5

Open
jacopotediosi wants to merge 5 commits into
larsjuhw:masterfrom
jacopotediosi:octoprint-2.0.0-fixes
Open

Octoprint 2.0.0 fixes#5
jacopotediosi wants to merge 5 commits into
larsjuhw:masterfrom
jacopotediosi:octoprint-2.0.0-fixes

Conversation

@jacopotediosi
Copy link
Copy Markdown

@jacopotediosi jacopotediosi commented May 12, 2026

Hi, I'm an active contributor to OctoPrint core. I helped ship OctoPrint 2.0.0rc1 and I'm now helping plugins stay compatible with the new and upcoming OctoPrint releases, which is why you're receiving this PR.


This PR fixes the compatibility issues preventing this plugin from being installed on OctoPrint 2.0.0rc1.

In particular:

  • Removes user_permission, which doesn't exist anymore in OctoPrint 2.0.0 (ref) and replaces it with a proper Permissions check.
  • Migrates the installation method to pyproject (ref). This has been done via the octoprint dev plugin:migrate-to-pyproject --rename-package command, with minor manual adjustments to the generated files.
  • Implements is_api_protected (ref).
  • Implements is_template_autoescaped (ref).
  • Fixes the edit button position to always add it at the end of the buttons row

I tested the installation on both OctoPrint 2.0.0rc1 and the latest stable release 1.11.7, and everything appears to work correctly.

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.

1 participant