Skip to content


OctoPrintPermission #

Bases: Permission

allows(identity) #

Whether the identity can access this permission. Overridden from Permission.allows to make sure the Identity provides ALL required needs instead of ANY required need.

:param identity: The identity

difference(other) #

Create a new OctoPrintPermission consisting of requirements in this permission and not in the other.

union(other) #

Create a new OctoPrintPermission with the requirements of the union of this and other.

:param other: The other permission

PluginIdentityContext #

Identity context for not initialized Permissions

Needed to support @Permissions.PLUGIN_X_Y.require()

Will search the permission when needed

http_exception = http_exception instance-attribute #

The permission of this principal

can() #

Whether the identity has access to the permission

identity() property #

The identity of this principal

PluginPermissionDecorator #

Bases: Permission

Decorator Class for not initialized Permissions

Needed to support @Permissions.PLUGIN_X_Y.require()

Back to top