Added Tag,Attribute parent to ev.py.

This commit is contained in:
Griatch 2014-02-19 10:00:15 +01:00
parent f9eece9749
commit 54586d0261

13
ev.py
View file

@ -143,12 +143,15 @@ from src.locks import lockfuncs
from src.scripts.scripts import Script from src.scripts.scripts import Script
# comms # comms
from src.comms.models import Msg, ChannelDB, ExternalChannelConnection from src.comms.models import Msg, ChannelDB, PlayerChannelConnection, ExternalChannelConnection
from src.comms.comms import Channel from src.comms.comms import Channel
# objects # objects
from src.objects.objects import Object, Character, Room, Exit from src.objects.objects import Object, Character, Room, Exit
# extras
from src.typeclasses.models import Attribute, Tag
# utils # utils
from src.utils.search import * from src.utils.search import *
@ -201,14 +204,17 @@ class DBmanagers(_EvContainer):
scripts - ScriptDB.objects scripts - ScriptDB.objects
msgs - Msg.objects msgs - Msg.objects
channels - Channel.objects channels - Channel.objects
connections - PlayerChannelConnection.objects
externalconnections - ExternalChannelConnection.objects externalconnections - ExternalChannelConnection.objects
objects - ObjectDB.objects objects - ObjectDB.objects
tags - Tags.objects
attributes - Attributes.objects
""" """
from src.help.models import HelpEntry from src.help.models import HelpEntry
from src.players.models import PlayerDB from src.players.models import PlayerDB
from src.scripts.models import ScriptDB 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.objects.models import ObjectDB
from src.server.models import ServerConfig from src.server.models import ServerConfig
from src.typeclasses.models import Tag, Attribute from src.typeclasses.models import Tag, Attribute
@ -219,13 +225,14 @@ class DBmanagers(_EvContainer):
scripts = ScriptDB.objects scripts = ScriptDB.objects
msgs = Msg.objects msgs = Msg.objects
channels = ChannelDB.objects channels = ChannelDB.objects
connections = PlayerChannelConnection.objects
externalconnections = ExternalChannelConnection.objects externalconnections = ExternalChannelConnection.objects
objects = ObjectDB.objects objects = ObjectDB.objects
serverconfigs = ServerConfig.objects serverconfigs = ServerConfig.objects
attributes = Attribute.objects attributes = Attribute.objects
tags = Tag.objects tags = Tag.objects
# remove these so they are not visible as properties # 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 del ExternalChannelConnection, ObjectDB, ServerConfig, Tag, Attribute
managers = DBmanagers() managers = DBmanagers()