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:
Griatch 2013-04-13 23:50:33 +02:00
parent 8bd8193ab9
commit 230d73cfa0
16 changed files with 2941 additions and 463 deletions

View file

@ -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