ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class Authorizable: (source)

View In Hierarchy

Let any Orionis model own permissions and roles.

Authorization rows are polymorphic: they store the type of the owner next to its identifier, so users, teams or API clients can all be granted the very same permissions.

The mixin is a plain class registered as a virtual implementation of IAuthorizable, because inheriting from the ABC directly would clash with ModelMeta, the metaclass of every Orionis model.

Method getAuthorizableId Return the identifier stored in the authorization tables.
Method getAuthorizableType Return the polymorphic type stored with the identifier.
Constant AUTHORIZABLE_TYPE Undocumented
Class Variable __slots__ Undocumented
def getAuthorizableId(self) -> object: (source)

Return the identifier stored in the authorization tables.

Returns
objectPrimary key value, or None when the model was never persisted.
def getAuthorizableType(self) -> str: (source)

Return the polymorphic type stored with the identifier.

Returns
strExplicit AUTHORIZABLE_TYPE when declared, otherwise the dotted path of the class.
AUTHORIZABLE_TYPE: ClassVar[str | None] = (source)

Undocumented

Value
None
__slots__: tuple = (source)

Undocumented