VirtualBox

Ignore:
Timestamp:
May 29, 2016 7:49:31 PM (9 years ago)
Author:
vboxsync
Message:

virtual test sheriff: Kick-off and the bad-testbox rebooting and disabling. (completely untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/base.py

    r61280 r61282  
    8989    """
    9090    Database row is in use and cannot be deleted.
     91    Used by ModelLogicBase decendants.
     92    """
     93    pass;
     94
     95
     96class TMInFligthCollision(TMExceptionBase):
     97    """
     98    Database update failed because someone else had already made changes to
     99    the data there.
    91100    Used by ModelLogicBase decendants.
    92101    """
     
    11591168        return self._oDb;
    11601169
     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
    11611190
    11621191class AttributeChangeEntry(object): # pylint: disable=R0903
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette