コード例 #1
0
def get_game_model(gameid=gid):
    """ Return a Game model for the given game id.

  Args:
    gameid: The game id of the Game.

  Returns:
    The database model for the specified id or None if no such model
    exists.
  """
    return Game.get(Key.from_path('Game', gameid))
コード例 #2
0
def get_game_model(gameid = gid):
  """ Return a Game model for the given game id.

  Args:
    gameid: The game id of the Game.

  Returns:
    The database model for the specified id or None if no such model
    exists.
  """
  return Game.get(Key.from_path('Game', gameid))