Changeset 61424 in vbox for trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmin.py
- Timestamp:
- Jun 3, 2016 2:22:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmin.py
r61422 r61424 405 405 return False 406 406 407 def _actionGenericDoRemove(self, oLogicType, sParamId, sRedirAction):408 """409 Delete entry (using oLogicType.removeEntry).410 411 oLogicType is a class that implements addEntry.412 413 sParamId is the name (ksParam_...) of the HTTP variable hold the ID of414 the database entry to delete.415 416 sRedirAction is what action to redirect to on success.417 """418 idEntry = self.getIntParam(sParamId, iMin = 1, iMax = 0x7fffffe)419 fCascade = self.getBoolParam('fCascadeDelete', False);420 self._checkForUnknownParameters()421 422 try:423 self._sPageTitle = None424 self._sPageBody = None425 self._sRedirectTo = self._sActionUrlBase + sRedirAction;426 return oLogicType(self._oDb).removeEntry(self._oCurUser.uid, idEntry, fCascade = fCascade, fCommit = True);427 except Exception as oXcpt:428 self._oDb.rollback();429 self._sPageTitle = 'Unable to delete entry';430 self._sPageBody = str(oXcpt);431 if config.g_kfDebugDbXcpt:432 self._sPageBody += cgitb.html(sys.exc_info());433 self._sRedirectTo = None;434 return False;435 436 407 437 408 #
Note:
See TracChangeset
for help on using the changeset viewer.