Adds compatibility with OctoPrint 2.0.0 while remaining compatible with 1.11.x.
What's Changed
- OctoPrint 2.0.0 compatibility. Replaced the removed
user_permissioncheck with a dedicatedPLUGIN_FILEDESCRIPTION_EDITpermission, granted to the Admins and Users groups by default — so existing users keep the access they had. - Migrated the install to
pyproject.toml. The Python package is nowoctoprint_filedescription(lowercase); the plugin identifier, API endpoint and stored file metadata are unchanged, so descriptions and tags carry over untouched. - The edit button now sits at the end of the action-buttons row instead of being appended after it, fixing its position in the file list.
- Implemented
is_api_protectedandis_template_autoescaped.
Upgrading
Update through the Plugin Manager as usual. No configuration changes are needed and existing descriptions and tags are preserved.
Thanks to @jacopotediosi for the OctoPrint 2.0.0 compatibility work in #5.
Full Changelog: 0.1.2...0.2.0