VirtualBox

Ignore:
Timestamp:
Jun 8, 2016 8:10:20 PM (9 years ago)
Author:
vboxsync
Message:

testmanager: attempt to fix broken testbox list actions. unfortuantely, the scheduling group migration had to go since it's now ambigious wrt multiple scheduling group participation of testboxes.

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

Legend:

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

    r61502 r61592  
    506506                        oTestBox.fEnabled = fEnable;
    507507                        oLogic.editEntry(oTestBox, self._oCurUser.uid, fCommit = False);
    508             elif sListAction == 'setgroup':
    509                 for oTestBox in aoTestBoxes:
    510                     if oTestBox.idSchedGroup != idAction:
    511                         oTestBox.idSchedGroup = idAction;
    512                         oLogic.editEntry(oTestBox, self._oCurUser.uid, fCommit = False);
    513508            else:
    514509                for oTestBox in aoTestBoxes:
    515510                    if oTestBox.enmPendingCmd != sListAction:
    516                         oTestBox.enmPendingCmd = sListAction;
    517                         oLogic.editEntry(oTestBox, self._oCurUser.uid, fCommit = False);
     511                        oLogic.setCommand(idTestBox, oTestBox.enmPendingCmd, sListAction, self._oCurUser.uid, fCommit = False);
    518512            self._oDb.commit();
    519513
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmintestbox.py

    r61502 r61592  
    190190                                       'align="center"' ]);
    191191        self._aoActions     = list(self.kasTestBoxActionDescs);
    192         self._aoSchedGroups = SchedGroupLogic(self._oDisp.getDb()).fetchOrderedByName();
    193         self._dSchedGroups  = dict();
    194         for oSchedGroup in self._aoSchedGroups:
    195             self._aoActions.append([ 'setgroup-%u' % (oSchedGroup.idSchedGroup,),
    196                                      'Migrate to group %s (#%u)' % (oSchedGroup.sName, oSchedGroup.idSchedGroup,),
    197                                      oSchedGroup.sDescription ]);
    198             self._dSchedGroups[oSchedGroup.idSchedGroup] = oSchedGroup;
    199192        self._sAction       = oDisp.ksActionTestBoxListPost;
    200193        self._sCheckboxName = TestBoxData.ksParam_idTestBox;
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