Changeset 61239 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 27, 2016 12:00:08 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/testmanager/webui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuibase.py
r61220 r61239 150 150 return True; 151 151 152 def _isMenuMatch(self, sMenuUrl, sActionParam): 153 """ Overridable menu matcher. """ 154 return sMenuUrl.find(sActionParam) > 0; 155 156 def _isSideMenuMatch(self, sSideMenuUrl, sActionParam): 157 """ Overridable side menu matcher. """ 158 return sSideMenuUrl.find(sActionParam) > 0; 159 152 160 def _generateMenus(self): 153 161 """ … … 161 169 sActionParam = '%s=%s' % (self.ksParamAction, self._sAction[:cchAction]); 162 170 for aoItem in self._aaoMenus: 163 if aoItem[1].find(sActionParam) > 0:171 if self._isMenuMatch(aoItem[1], sActionParam): 164 172 aasSideMenu = aoItem[2]; 165 173 break; 166 174 for asSubItem in aoItem[2]: 167 if asSubItem[1].find(sActionParam) > 0:175 if self._isMenuMatch(asSubItem[1], sActionParam): 168 176 aasSideMenu = aoItem[2]; 169 177 break; … … 190 198 if aasSideMenu is not None: 191 199 for asSubItem in aasSideMenu: 192 if asSubItem[1].find(sActionParam) > 0:200 if self._isSideMenuMatch(asSubItem[1], sActionParam): 193 201 sSideMenuItems += '<li class="current_page_item">'; 194 202 else: -
trunk/src/VBox/ValidationKit/testmanager/webui/wuimain.py
r61219 r61239 266 266 # Shorthand to keep within margins. 267 267 sActUrlBase = self._sActionUrlBase; 268 sOFail = '&%s' % webutils.encodeUrlParams({self.ksParamOnlyFailures: True}); 268 269 269 270 self._aaoMenus = \ … … 293 294 ], 294 295 [ 296 'Test Failures', sActUrlBase + self.ksActionResultsUnGrouped + sOFail + sExtraTimeNav, 297 [ 298 [ 'Ungrouped results', sActUrlBase + self.ksActionResultsUnGrouped +sOFail+sExtraTimeNav], 299 [ 'Grouped by Scheduling Group', sActUrlBase + self.ksActionResultsGroupedBySchedGroup+sOFail+sExtraTimeNav], 300 [ 'Grouped by Test Group', sActUrlBase + self.ksActionResultsGroupedByTestGroup +sOFail+sExtraTimeNav], 301 [ 'Grouped by TestBox', sActUrlBase + self.ksActionResultsGroupedByTestBox +sOFail+sExtraTimeNav], 302 [ 'Grouped by Test Case', sActUrlBase + self.ksActionResultsGroupedByTestCase +sOFail+sExtraTimeNav], 303 [ 'Grouped by Revision', sActUrlBase + self.ksActionResultsGroupedByBuildRev +sOFail+sExtraTimeNav], 304 ] 305 ], 306 [ 295 307 '> Admin', 'admin.py?' + webutils.encodeUrlParams(self._dDbgParams), [] 296 308 ], … … 305 317 TestResultLogic, 306 318 WuiGroupedResultList) 319 320 def _isMenuMatch(self, sMenuUrl, sActionParam): 321 if super(WuiMain, self)._isMenuMatch(sMenuUrl, sActionParam): 322 fOnlyFailures = self.getBoolParam(self.ksParamOnlyFailures, fDefault = False); 323 return (sMenuUrl.find(self.ksParamOnlyFailures) > 0) == fOnlyFailures; 324 return False; 307 325 308 326
Note:
See TracChangeset
for help on using the changeset viewer.