evennia.web.website.views.characters¶
Views for manipulating Characters (children of Objects often used for puppeting).
-
class
evennia.web.website.views.characters.
CharacterMixin
[source]¶ Bases:
evennia.web.website.views.mixins.TypeclassMixin
This is a “mixin”, a modifier of sorts.
Any view class with this in its inheritance list will be modified to work with Character objects instead of generic Objects or otherwise.
-
model
¶
-
form_class
¶
-
success_url
¶
-
-
class
evennia.web.website.views.characters.
CharacterListView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,evennia.web.website.views.characters.CharacterMixin
,django.views.generic.list.ListView
This view provides a mechanism by which a logged-in player can view a list of all other characters.
This view requires authentication by default as a nominal effort to prevent human stalkers and automated bots/scrapers from harvesting data on your users.
-
template_name
= 'website/character_list.html'¶
-
paginate_by
= 100¶
-
page_title
= 'Character List'¶
-
access_type
= 'view'¶
-
-
class
evennia.web.website.views.characters.
CharacterPuppetView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,evennia.web.website.views.characters.CharacterMixin
,django.views.generic.base.RedirectView
,evennia.web.website.views.objects.ObjectDetailView
This view provides a mechanism by which a logged-in player can “puppet” one of their characters within the context of the website.
It also ensures that any user attempting to puppet something is logged in, and that their intended puppet is one that they own.
-
class
evennia.web.website.views.characters.
CharacterManageView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,evennia.web.website.views.characters.CharacterMixin
,django.views.generic.list.ListView
This view provides a mechanism by which a logged-in player can browse, edit, or delete their own characters.
-
paginate_by
= 10¶
-
template_name
= 'website/character_manage_list.html'¶
-
page_title
= 'Manage Characters'¶
-
-
class
evennia.web.website.views.characters.
CharacterUpdateView
(**kwargs)[source]¶ Bases:
evennia.web.website.views.characters.CharacterMixin
,evennia.web.website.views.objects.ObjectUpdateView
This view provides a mechanism by which a logged-in player (enforced by ObjectUpdateView) can edit the attributes of a character they own.
-
form_class
¶
-
template_name
= 'website/character_form.html'¶
-
-
class
evennia.web.website.views.characters.
CharacterDetailView
(**kwargs)[source]¶ Bases:
evennia.web.website.views.characters.CharacterMixin
,evennia.web.website.views.objects.ObjectDetailView
This view provides a mechanism by which a user can view the attributes of a character, owned by them or not.
-
template_name
= 'website/object_detail.html'¶
-
attributes
= ['name', 'desc']¶
-
access_type
= 'view'¶
-
-
class
evennia.web.website.views.characters.
CharacterDeleteView
(*args, **kwargs)[source]¶ Bases:
evennia.web.website.views.characters.CharacterMixin
,evennia.web.website.views.objects.ObjectDeleteView
This view provides a mechanism by which a logged-in player (enforced by ObjectDeleteView) can delete a character they own.
-
form_class
¶
-
-
class
evennia.web.website.views.characters.
CharacterCreateView
(**kwargs)[source]¶ Bases:
evennia.web.website.views.characters.CharacterMixin
,evennia.web.website.views.objects.ObjectCreateView
This view provides a mechanism by which a logged-in player (enforced by ObjectCreateView) can create a new character.
-
template_name
= 'website/character_form.html'¶
-