VirtualBox

Ignore:
Timestamp:
Mar 21, 2020 5:03:54 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136565
Message:

TestManager/wui: Added separator between scheduling queue blocks.

File:
1 edited

Legend:

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

    r83342 r83361  
    4949            'align="center"', 'align="center"',   'align="center"', 'align="center"', 'align="center"', 'align="center"'
    5050        ];
     51        self._iPrevPerSchedGroupRowNumber = 0;
    5152
    5253    def _formatListEntry(self, iEntry):
     
    5556        return [ oEntry.tsLastScheduled, oEntry.sSchedGroup, oEntry.sTestGroup, oEntry.sTestCase, sState, oEntry.idItem ];
    5657
     58    def _formatListEntryHtml(self, iEntry):
     59        sHtml = WuiListContentBase._formatListEntryHtml(self, iEntry);
     60
     61        # Insert separator row?
     62        if iEntry < len(self._aoEntries):
     63            oEntry = self._aoEntries[iEntry] # type: SchedQueueEntry
     64            if oEntry.iPerSchedGroupRowNumber != self._iPrevPerSchedGroupRowNumber:
     65                if iEntry > 0:
     66                    sHtml += '<tr class="tmseparator"><td colspan=%s> </td></tr>\n' % (len(self._asColumnHeaders),);
     67                self._iPrevPerSchedGroupRowNumber = oEntry.iPerSchedGroupRowNumber;
     68        return sHtml;
     69
Note: See TracChangeset for help on using the changeset viewer.

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