Пример #1
0
    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())
Пример #2
0
  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())
Пример #3
0
 def fetch(cls, name):
   """Returns the current version of the instance."""
   return datastore_utils.get_versioned_most_recent(
       cls, cls._gen_root_key(name))