def fetch(cls): """Returns the current up-to-date version of the config entity. Always fetches it from datastore. May return None if missing. """ return datastore_utils.get_versioned_most_recent( cls, cls._get_root_key())
def fetch(cls): """Returns the current up-to-date version of the config entity. Always fetches it from datastore. May return None if missing. """ return datastore_utils.get_versioned_most_recent(cls, cls._get_root_key())
def fetch(cls, name): """Returns the current version of the instance.""" return datastore_utils.get_versioned_most_recent( cls, cls._gen_root_key(name))