evennia.web.website.views.mixins

These are mixins for class-based views, granting functionality.

class evennia.web.website.views.mixins.TypeclassMixin[source]

Bases: object

This is a “mixin”, a modifier of sorts.

Django views typically work with classes called “models.” Evennia objects are an enhancement upon these Django models and are called “typeclasses.” But Django itself has no idea what a “typeclass” is.

For the sake of mitigating confusion, any view class with this in its inheritance list will be modified to work with Evennia Typeclass objects or Django models interchangeably.

property typeclass
class evennia.web.website.views.mixins.EvenniaCreateView(**kwargs)[source]

Bases: django.views.generic.edit.CreateView, evennia.web.website.views.mixins.TypeclassMixin

This view extends Django’s default CreateView.

CreateView is used for creating new objects, be they Accounts, Characters or otherwise.

property page_title
class evennia.web.website.views.mixins.EvenniaDetailView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView, evennia.web.website.views.mixins.TypeclassMixin

This view extends Django’s default DetailView.

DetailView is used for displaying objects, be they Accounts, Characters or otherwise.

property page_title
class evennia.web.website.views.mixins.EvenniaUpdateView(**kwargs)[source]

Bases: django.views.generic.edit.UpdateView, evennia.web.website.views.mixins.TypeclassMixin

This view extends Django’s default UpdateView.

UpdateView is used for updating objects, be they Accounts, Characters or otherwise.

property page_title
class evennia.web.website.views.mixins.EvenniaDeleteView(*args, **kwargs)[source]

Bases: django.views.generic.edit.DeleteView, evennia.web.website.views.mixins.TypeclassMixin

This view extends Django’s default DeleteView.

DeleteView is used for deleting objects, be they Accounts, Characters or otherwise.

property page_title