evennia.server.models

Server Configuration flags

This holds persistent server configuration flags.

Config values should usually be set through the manager’s conf() method.

class evennia.server.models.ServerConfig(*args, **kwargs)[source]

Bases: evennia.utils.idmapper.models.WeakSharedMemoryModel

On-the fly storage of global settings.

Properties defined on ServerConfig:

  • key: Main identifier

  • value: Value stored in key. This is a pickled storage.

db_key

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

db_value

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <evennia.server.manager.ServerConfigManager object>
property key

Getter. Allows for value = self.key

property value

Getter. Allows for value = self.value

store(key, value)[source]

Wrap the storage.

Parameters
  • key (str) – The name of this store.

  • value (str) – The data to store with this key.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

path = 'evennia.server.models.ServerConfig'
typename = 'WeakSharedMemoryModelBase'