VirtualBox

Changeset 83385 in vbox for trunk


Ignore:
Timestamp:
Mar 24, 2020 2:46:13 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/SchedQueue: Fixed various validation issues with the testbox-in-sched-group stuff. Added change log to the scheduling queue details page.

Location:
trunk/src/VBox/ValidationKit/testmanager/webui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadminschedgroup.py

    r83364 r83385  
    8686        oForm.addListOfSchedGroupMembers(SchedGroupDataEx.ksParam_aoMembers,
    8787                                         oData.aoMembers, self._aoAllRelevantTestGroups,    'Test groups',
    88                                          fReadOnly = self._sMode == WuiFormContentBase.ksMode_Show);
     88                                         oData.idSchedGroup, fReadOnly = self._sMode == WuiFormContentBase.ksMode_Show);
    8989
    9090        oForm.addListOfSchedGroupBoxes(SchedGroupDataEx.ksParam_aoTestBoxes,
    9191                                       oData.aoTestBoxes, self._aoAllRelevantTestBoxes,     'Test boxes',
    92                                        fReadOnly = self._sMode == WuiFormContentBase.ksMode_Show);
     92                                       oData.idSchedGroup, fReadOnly = self._sMode == WuiFormContentBase.ksMode_Show);
    9393
    9494        oForm.addMultilineText(SchedGroupData.ksParam_sComment,     oData.sComment,         'Comment');
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmintestbox.py

    r82968 r83385  
    111111                                             oData.aoInSchedGroups,
    112112                                             SchedGroupLogic(TMDatabaseConnection()).fetchOrderedByName(),
    113                                              'Scheduling Group');
     113                                             'Scheduling Group', oData.idTestBox);
    114114        # Command, comment and submit button.
    115115        if self._sMode == WuiFormContentBase.ksMode_Edit:
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpform.py

    r83364 r83385  
    765765
    766766    def addListOfSchedGroupMembers(self, sName, aoSchedGroupMembers, aoAllRelevantTestGroups,  # pylint: disable=too-many-locals
    767                                    sLabel, fReadOnly = True):
     767                                   sLabel, idSchedGroup, fReadOnly = True):
    768768        """
    769769        For WuiAdminSchedGroup.
     
    821821                      % ( 'tmodd' if iTestGroup & 1 else 'tmeven',
    822822                          sPrefix, SchedGroupMemberData.ksParam_idTestGroup,    oTestGroup.idTestGroup,
    823                           sPrefix, SchedGroupMemberData.ksParam_idSchedGroup,   -1 if oMember is None else oMember.idSchedGroup,
     823                          sPrefix, SchedGroupMemberData.ksParam_idSchedGroup,   idSchedGroup,
    824824                          sPrefix, SchedGroupMemberData.ksParam_tsExpire,       '' if oMember is None else oMember.tsExpire,
    825825                          sPrefix, SchedGroupMemberData.ksParam_tsEffective,    '' if oMember is None else oMember.tsEffective,
     
    863863                         u'</table>\n');
    864864
    865     def addListOfSchedGroupBoxes(self, sName, aoSchedGroupBoxes, aoAllRelevantTestBoxes, # pylint: disable=too-many-locals
    866                                  sLabel, fReadOnly = True): # (str, list[TestBoxDataEx], list[TestBoxDataEx], str, bool) -> str
     865    def addListOfSchedGroupBoxes(self, sName, aoSchedGroupBoxes, aoAllRelevantTestBoxes, sLabel, # pylint: disable=too-many-locals
     866                                 idSchedGroup, fReadOnly = True): # (str, list[TestBoxDataEx], list[TestBoxDataEx], str, bool) -> str
    867867        """
    868868        For WuiAdminSchedGroup.
     
    918918                      % ( 'tmodd' if iTestBox & 1 else 'tmeven',
    919919                          sPrefix, TestBoxDataForSchedGroup.ksParam_idTestBox,    oTestBox.idTestBox,
    920                           sPrefix, TestBoxDataForSchedGroup.ksParam_idSchedGroup, -1 if oMember is None else oMember.idSchedGroup,
     920                          sPrefix, TestBoxDataForSchedGroup.ksParam_idSchedGroup, idSchedGroup,
    921921                          sPrefix, TestBoxDataForSchedGroup.ksParam_tsExpire,     '' if oMember is None else oMember.tsExpire,
    922922                          sPrefix, TestBoxDataForSchedGroup.ksParam_tsEffective,  '' if oMember is None else oMember.tsEffective,
     
    940940
    941941    def addListOfSchedGroupsForTestBox(self, sName, aoInSchedGroups, aoAllSchedGroups, sLabel,  # pylint: disable=too-many-locals
    942                                        fReadOnly = None):
     942                                       idTestBox, fReadOnly = None):
    943943        # type: (str, TestBoxInSchedGroupDataEx, SchedGroupData, str, bool) -> str
    944944        """
     
    10041004                      u'    </td>\n'
    10051005                      % ( 'tmodd' if iSchedGroup & 1 else 'tmeven',
    1006                           sPrefix, TestBoxInSchedGroupData.ksParam_idSchedGroup,  oSchedGroup.idSchedGroup,
    1007                           sPrefix, TestBoxInSchedGroupData.ksParam_idTestBox,   -1 if oMember is None else oMember.idTestBox,
     1006                          sPrefix, TestBoxInSchedGroupData.ksParam_idSchedGroup, oSchedGroup.idSchedGroup,
     1007                          sPrefix, TestBoxInSchedGroupData.ksParam_idTestBox,   idTestBox,
    10081008                          sPrefix, TestBoxInSchedGroupData.ksParam_tsExpire,    '' if oMember is None else oMember.tsExpire,
    10091009                          sPrefix, TestBoxInSchedGroupData.ksParam_tsEffective, '' if oMember is None else oMember.tsEffective,
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