A first test using PickledObjectField and a rewritten dbserialize module to store Attributes. No migrations set up yet.

This commit is contained in:
Griatch 2013-04-13 15:15:02 +02:00
parent 4d5cd5352a
commit 75341ade6f
7 changed files with 678 additions and 140 deletions

View file

@ -478,6 +478,7 @@ def delay(delay=2, retval=None, callback=None):
reactor.callLater(delay, callb, retval)
return d
_FROM_MODEL_MAP = None
_TO_DBOBJ = lambda o: (hasattr(o, "dbobj") and o.dbobj) or o
_TO_PACKED_DBOBJ = lambda natural_key, dbref: ('__packed_dbobj__', natural_key, dbref)
@ -673,6 +674,8 @@ def run_async(to_execute, *args, **kwargs):
deferred.addCallback(callback, **callback_kwargs)
deferred.addErrback(errback, **errback_kwargs)
#
def check_evennia_dependencies():
"""
Checks the versions of Evennia's dependencies.