One of the appeals of ReagentConfig is that it avoids actually loading the database until the last possible moment. However, it's not always possible to use ReagentConfig. There should be something with the same functionality, but the same basic API as freezerbox.load_db(). Probably it should be called freezerbox.load_lazy_db(). ReagentConfig could then be reimplemented in terms of this object (which should simplify it dramatically).
One of the appeals of
ReagentConfig
is that it avoids actually loading the database until the last possible moment. However, it's not always possible to useReagentConfig
. There should be something with the same functionality, but the same basic API asfreezerbox.load_db()
. Probably it should be calledfreezerbox.load_lazy_db()
.ReagentConfig
could then be reimplemented in terms of this object (which should simplify it dramatically).