diff --git a/ev.py b/ev.py index 0b05405671..2f6487ae1a 100644 --- a/ev.py +++ b/ev.py @@ -143,12 +143,15 @@ from src.locks import lockfuncs from src.scripts.scripts import Script # comms -from src.comms.models import Msg, ChannelDB, ExternalChannelConnection +from src.comms.models import Msg, ChannelDB, PlayerChannelConnection, ExternalChannelConnection from src.comms.comms import Channel # objects from src.objects.objects import Object, Character, Room, Exit +# extras +from src.typeclasses.models import Attribute, Tag + # utils from src.utils.search import * @@ -201,14 +204,17 @@ class DBmanagers(_EvContainer): scripts - ScriptDB.objects msgs - Msg.objects channels - Channel.objects + connections - PlayerChannelConnection.objects externalconnections - ExternalChannelConnection.objects objects - ObjectDB.objects + tags - Tags.objects + attributes - Attributes.objects """ from src.help.models import HelpEntry from src.players.models import PlayerDB from src.scripts.models import ScriptDB - from src.comms.models import Msg, ChannelDB, ExternalChannelConnection + from src.comms.models import Msg, ChannelDB, PlayerChannelConnection, ExternalChannelConnection from src.objects.models import ObjectDB from src.server.models import ServerConfig from src.typeclasses.models import Tag, Attribute @@ -219,13 +225,14 @@ class DBmanagers(_EvContainer): scripts = ScriptDB.objects msgs = Msg.objects channels = ChannelDB.objects + connections = PlayerChannelConnection.objects externalconnections = ExternalChannelConnection.objects objects = ObjectDB.objects serverconfigs = ServerConfig.objects attributes = Attribute.objects tags = Tag.objects # remove these so they are not visible as properties - del HelpEntry, PlayerDB, ScriptDB, Msg, ChannelDB + del HelpEntry, PlayerDB, ScriptDB, Msg, ChannelDB, PlayerChannelConnection, del ExternalChannelConnection, ObjectDB, ServerConfig, Tag, Attribute managers = DBmanagers()