Home | History | Annotate | Download | only in site_utils

Lines Matching full:board

16 # Name of the default board. For boards that don't have stable version
17 # explicitly set, version for the default board will be used.
28 versions = dict([(v.board, v.version)
38 def get(board=DEFAULT, android=False):
39 """Get stable version for the given board.
41 @param board: Name of the board, default to value `DEFAULT`.
43 board. There is no default version that works for all
45 OS based board.
47 @return: Stable version of the given board. If the given board is not listed
50 afe_stable_versions table does not have entry of board DEFAULT.
52 if board == DEFAULT and android:
55 return models.StableVersion.objects.get(board=board).version
57 if board == DEFAULT:
62 'ANDROID', 'stable_version_%s' % board, default=None)
64 return get(board=DEFAULT)
67 def set(version, board=DEFAULT):
68 """Set stable version for the given board.
70 @param version: The new value of stable version for given board.
71 @param board: Name of the board, default to value `DEFAULT`.
74 stable_version = models.StableVersion.objects.get(board=board)
78 models.StableVersion.objects.create(board=board, version=version)
80 metadata={'board': board, 'version': version})
83 def delete(board):
84 """Delete stable version record for the given board.
86 @param board: Name of the board.
88 stable_version = models.StableVersion.objects.get(board=board)
91 metadata={'board': board, 'version': get()})