Esempio n. 1
0
 def _generatePostFormContent(self, oData):
     """
     Adds a table with the category members below the form.
     """
     if oData.idFailureCategory is not None and oData.idFailureCategory >= 0:
         oLogic = FailureReasonLogic(self._oDisp.getDb())
         tsNow = self._oDisp.getNow()
         cMax = 4096
         aoEntries = oLogic.fetchForListingInCategory(0, cMax, tsNow, oData.idFailureCategory)
         if len(aoEntries) > 0:
             oList = WuiAdminFailureReasonList(aoEntries, 0, cMax, tsNow, fnDPrint=None, oDisp=self._oDisp)
             return [["Members", oList.show(fShowNavigation=False)[1]]]
     return []
 def _generatePostFormContent(self, oData):
     """
     Adds a table with the category members below the form.
     """
     if oData.idFailureCategory is not None and oData.idFailureCategory >= 0:
         oLogic    = FailureReasonLogic(self._oDisp.getDb());
         tsNow     = self._oDisp.getNow();
         cMax      = 4096;
         aoEntries = oLogic.fetchForListingInCategory(0, cMax, tsNow, oData.idFailureCategory)
         if aoEntries:
             oList = WuiAdminFailureReasonList(aoEntries, 0, cMax, tsNow, fnDPrint = None, oDisp = self._oDisp);
             return [ [ 'Members', oList.show(fShowNavigation = False)[1]], ];
     return [];