mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 09:46:32 +01:00
Migrations work under sqlite3, both from latest dev, from new install and from trunk. There might be some consistency issues though (it seems the character list is not properly migrated), so more testing is required.
This commit is contained in:
parent
8bd8193ab9
commit
230d73cfa0
16 changed files with 2941 additions and 463 deletions
|
|
@ -84,7 +84,7 @@ class _SaverMutable(object):
|
|||
self._parent._save_tree()
|
||||
elif self._db_obj:
|
||||
self._db_obj.value = self
|
||||
logger.log_err("_SaverMutable %s has no root Attribute to save to." % self)
|
||||
logger.log_errmsg("_SaverMutable %s has no root Attribute to save to." % self)
|
||||
def _convert_mutables(self, data):
|
||||
"converts mutables to Saver* variants and assigns .parent property"
|
||||
def process_tree(item, parent):
|
||||
|
|
@ -260,7 +260,7 @@ def from_pickle(data, db_obj=None):
|
|||
return item
|
||||
|
||||
def process_tree(item, parent):
|
||||
"Recursive processor, convertion and identification of data"
|
||||
"Recursive processor, building a parent-tree from iterable data"
|
||||
dtype = type(item)
|
||||
if dtype in (basestring, int, long, float, bool):
|
||||
return item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue