def load(self): """ Initialize from the database """ from noms.config import Config cfg = Config.objects().first() assert cfg is not None, "Couldn't load a config from the database" self.__dict__["_realConfig"] = cfg return self