mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
First non-tested version of moving typeclasses to proxy models.
This commit is contained in:
parent
8e8d85a4fe
commit
236c0d17d3
9 changed files with 403 additions and 622 deletions
|
|
@ -9,7 +9,7 @@ from twisted.internet.defer import Deferred, maybeDeferred
|
|||
from twisted.internet.task import LoopingCall
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from src.typeclasses.typeclass import TypeClass
|
||||
from src.typeclasses.models import TypeclassBase
|
||||
from src.scripts.models import ScriptDB
|
||||
from src.comms import channelhandler
|
||||
from src.utils import logger
|
||||
|
|
@ -108,11 +108,12 @@ class ExtendedLoopingCall(LoopingCall):
|
|||
#
|
||||
# Base script, inherit from Script below instead.
|
||||
#
|
||||
class ScriptBase(TypeClass):
|
||||
class ScriptBase(ScriptDB):
|
||||
"""
|
||||
Base class for scripts. Don't inherit from this, inherit
|
||||
from the class 'Script' instead.
|
||||
"""
|
||||
__metaclass__ = TypeclassBase
|
||||
# private methods
|
||||
|
||||
def __eq__(self, other):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue