Changeset 61282 in vbox for trunk/src/VBox/ValidationKit/testmanager/core/base.py
- Timestamp:
- May 29, 2016 7:49:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/base.py
r61280 r61282 89 89 """ 90 90 Database row is in use and cannot be deleted. 91 Used by ModelLogicBase decendants. 92 """ 93 pass; 94 95 96 class TMInFligthCollision(TMExceptionBase): 97 """ 98 Database update failed because someone else had already made changes to 99 the data there. 91 100 Used by ModelLogicBase decendants. 92 101 """ … … 1159 1168 return self._oDb; 1160 1169 1170 def _dbRowsToModelDataList(self, oModelDataType, aaoRows = None): 1171 """ 1172 Helper for conerting a simple fetch into a list of ModelDataType python objects. 1173 1174 If aaoRows is None, we'll fetchAll from the database ourselves. 1175 1176 The oModelDataType must be a class derived from ModelDataBase and implement 1177 the initFormDbRow method. 1178 1179 Returns a list of oModelDataType instances. 1180 """ 1181 assert issubclass(oModelDataType, ModelDataBase); 1182 aoRet = []; 1183 if aaoRows is None: 1184 aaoRows = self._oDb.fetchAll(); 1185 for aoRow in aaoRows: 1186 aoRet.append(oModelDataType().initFromDbRow(aoRow)); 1187 return aoRet; 1188 1189 1161 1190 1162 1191 class AttributeChangeEntry(object): # pylint: disable=R0903
Note:
See TracChangeset
for help on using the changeset viewer.