Overhaul data reloading
authorJeremy Stanley <fungi@yuggoth.org>
Fri, 13 Jul 2018 16:56:17 +0000 (16:56 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Fri, 13 Jul 2018 17:47:48 +0000 (17:47 +0000)
commitdb8edcf9c6070a39c6205ac0e1cd9e811fa08312
tree900d9b046588a48ec25d130f09610fb422e3e8ec
parent0ca4234695585e220d2464a20af307c2bc7f28c5
Overhaul data reloading

The data model change left the reload feature in a miserable state
causing facets of mutable elements to be lost, changes introduced in
read-only origins to be ignored, and so on. Simplify the
implementation to just save, wipe and re-read all persistent data as
if the engine were starting initially. Also add a basic check to the
reload test to make sure a mutable element still has facets after
reloading, so that we reduce the risk of future regression. Include
a bit more verbose logging around when and what files are read at
load/reload time.
mudpy/data.py
mudpy/misc.py
mudpy/tests/selftest.py