Changeset 65041 in vbox for trunk/src/VBox/ValidationKit/testmanager/webui/wuiadminsystemchangelog.py
- Timestamp:
- Dec 31, 2016 3:03:28 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuiadminsystemchangelog.py
r65040 r65041 267 267 268 268 elif oEntry.sEvent == SystemLogData.ksEvent_TestSetAbandoned: 269 sEvent = 'Abandoned test set';269 sEvent = 'Abandoned ' if oEntry.sDesc.startswith('idTestSet') else 'Abandoned test set'; 270 270 oDetails = self._formatDescGeneric(oEntry.sDesc, oEntry); 271 271 … … 359 359 oChangeEntry = aoChanges[0]; 360 360 cAttribsChanged = len(oChangeEntry.aoChanges) + 1; 361 if oChangeEntry.oOldRaw is None and sEvent.startswith('Modified '): 362 sEvent = 'Created ' + sEvent[9:]; 363 361 364 else: 362 365 oChangeEntry = None; … … 366 369 u' <td rowspan="%d">%s</td>\n' \ 367 370 u' <td rowspan="%d">%s</td>\n' \ 368 u' <td rowspan ="%d">%s</td>\n' \369 u' <td colspan="3"> %s</td>\n' \371 u' <td rowspanx="%d" colspan="4">%s<!--</td>\n' \ 372 u' <td colspan="3">--> %s</td>\n' \ 370 373 u' </tr>\n' \ 371 374 % ( sRowClass, … … 378 381 if oChangeEntry is not None: 379 382 for j, oChange in enumerate(oChangeEntry.aoChanges): 383 sHtml += ' <tr class="%s%s tmsyschlogattr"><td class="%s tmsyschlogspacer%s"></td>' \ 384 % ( sRowClass, 'odd' if j & 1 else 'even', 385 sRowClass, 'final' if j + 1 == len(oChangeEntry.aoChanges) else ''); 380 386 if isinstance(oChange, AttributeChangeEntryPre): 381 sHtml += ' <tr class="%s%s tmsyschlogattr"><td>%s</td>'\ 382 '<td><div class="tdpre"><pre>%s</pre></div></td>' \ 387 sHtml += '<td><div class="tdpre"><pre>%s</pre></div></td>' \ 383 388 '<td><div class="tdpre"><pre>%s</pre></div></td></tr>\n' \ 384 % ( sRowClass, 'odd' if j & 1 else 'even', 385 webutils.escapeElem(oChange.sAttr), 389 % ( webutils.escapeElem(oChange.sAttr), 386 390 webutils.escapeElem(oChange.sOldText), 387 391 webutils.escapeElem(oChange.sNewText), ); 388 392 else: 389 sHtml += ' <tr class="%s%s tmsyschlogattr"><td>%s</td><td>%s</td><td>%s</td></tr>\n' \ 390 % ( sRowClass, 'odd' if j & 1 else 'even', 391 webutils.escapeElem(oChange.sAttr), 393 sHtml += ' <td>%s</td><td>%s</td><td>%s</td></tr>\n' \ 394 % ( webutils.escapeElem(oChange.sAttr), 392 395 webutils.escapeElem(oChange.sOldText), 393 396 webutils.escapeElem(oChange.sNewText), ); … … 405 408 u' <th rowspan="2">When</th>\n' \ 406 409 u' <th rowspan="2">Who</th>\n' \ 407 u' <th rowspan="2">Event</th>\n' \ 408 u' <th colspan="3">Details</th>\n' \ 410 u' <th colspan="4">Event</th>\n' \ 409 411 u' </tr>\n' \ 410 412 u' <tr>\n' \ 413 u' <th></th>\n' \ 411 414 u' <th>Attribute</th>\n' \ 412 u' <th>Old Value</th>\n' \413 u' <th>New Value</th>\n' \415 u' <th>Old</th>\n' \ 416 u' <th>New</th>\n' \ 414 417 u' </tr>\n' \ 415 418 u'</thead>\n';
Note:
See TracChangeset
for help on using the changeset viewer.