VirtualBox

Ignore:
Timestamp:
Jun 3, 2016 2:22:30 AM (9 years ago)
Author:
vboxsync
Message:

vsheriff: Some progress.

File:
1 edited

Legend:

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

    r61422 r61424  
    405405        return False
    406406
    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 of
    414         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  = None
    424             self._sPageBody   = None
    425             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 
    436407
    437408    #
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