示例#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
文件: config.py 项目: nodirt/luci-py
  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))