def __init__(self,
                 aoEntries,
                 iPage,
                 cItemsPerPage,
                 tsEffective,
                 fnDPrint,
                 oDisp,
                 aiSelectedSortColumns=None):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle='Global Resources',
            sId='globalResources',
            fnDPrint=fnDPrint,
            oDisp=oDisp,
            aiSelectedSortColumns=aiSelectedSortColumns)

        self._asColumnHeaders = [
            'ID', 'Name', 'Description', 'Enabled', 'Actions'
        ]
        self._asColumnAttribs = [
            'align="right"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"'
        ]
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Failure Categories', sId = 'failureCategories',
                                    fnDPrint = fnDPrint, oDisp = oDisp);

        self._asColumnHeaders = ['ID', 'Short Description', 'Full Description', 'Actions' ]
        self._asColumnAttribs = ['align="right"', 'align="center"', 'align="center"', 'align="center"']
Example #3
0
 def __init__(self,
              aoEntries,
              iPage,
              cItemsPerPage,
              tsEffective,
              fnDPrint,
              oDisp,
              aiSelectedSortColumns=None):
     tsEffective = None
     # Not relevant, no history on the scheduling queue.
     WuiListContentBase.__init__(
         self,
         aoEntries,
         iPage,
         cItemsPerPage,
         tsEffective,
         'Scheduling Queue',
         fnDPrint=fnDPrint,
         oDisp=oDisp,
         aiSelectedSortColumns=aiSelectedSortColumns,
         fTimeNavigation=False)
     self._asColumnHeaders = [
         'Last Run', 'Scheduling Group', 'Test Group', 'Test Case',
         'Config State', 'Item ID'
     ]
     self._asColumnAttribs = [
         'align="center"', 'align="center"', 'align="center"',
         'align="center"', 'align="center"', 'align="center"'
     ]
     self._iPrevPerSchedGroupRowNumber = 0
Example #4
0
    def __init__(self,
                 aoEntries,
                 iPage,
                 cItemsPerPage,
                 tsEffective,
                 fnDPrint,
                 oDisp,
                 aiSelectedSortColumns=None):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle='Build Blacklist',
            sId='buildsBlacklist',
            fnDPrint=fnDPrint,
            oDisp=oDisp,
            aiSelectedSortColumns=aiSelectedSortColumns)

        self._asColumnHeaders = [
            'ID', 'Failure Reason', 'Product', 'Branch', 'Type', 'OS(es)',
            'First Revision', 'Last Revision', 'Actions'
        ]
        self._asColumnAttribs = [
            'align="right"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', 'align="center"',
            'align="center"'
        ]
    def __init__(self, aoEntries, cEntriesCount, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        """Override initialization"""
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Ungrouped (%d)' % cEntriesCount, sId = 'results',
                                    fnDPrint = fnDPrint, oDisp = oDisp);

        self._cEntriesCount   = cEntriesCount

        self._asColumnHeaders = [
            'Start',
            'Product Build',
            'Validation Kit',
            'TestBox OS',
            'TestBox Name',
            'Test Case',
            'Elapsed',
            'Result',
        ];
        self._asColumnAttribs = ['align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"' ]


        # Prepare parameter lists.
        self._dTestBoxLinkParams = self._oDisp.getParameters();
        self._dTestBoxLinkParams[WuiMain.ksParamAction]  = WuiMain.ksActionResultsGroupedByTestBox;

        self._dTestCaseLinkParams = self._oDisp.getParameters();
        self._dTestCaseLinkParams[WuiMain.ksParamAction] = WuiMain.ksActionResultsGroupedByTestCase;

        self._dRevLinkParams = self._oDisp.getParameters();
        self._dRevLinkParams[WuiMain.ksParamAction]  = WuiMain.ksActionResultsGroupedByBuildRev;
Example #6
0
 def __init__(self,
              aoEntries,
              iPage,
              cItemsPerPage,
              tsEffective,
              fnDPrint,
              oDisp,
              aiSelectedSortColumns=None):
     WuiListContentBase.__init__(
         self,
         aoEntries,
         iPage,
         cItemsPerPage,
         tsEffective,
         sTitle='Build Categories',
         sId='buildcategories',
         fnDPrint=fnDPrint,
         oDisp=oDisp,
         aiSelectedSortColumns=aiSelectedSortColumns)
     self._asColumnHeaders = ([
         'ID', 'Product', 'Repository', 'Branch', 'Build Type',
         'OS/Architectures', 'Actions'
     ])
     self._asColumnAttribs = ([
         'align="right"', '', '', '', '', 'align="center"'
     ])
Example #7
0
 def __init__(self,
              aoEntries,
              iPage,
              cItemsPerPage,
              tsEffective,
              fnDPrint,
              oDisp,
              cDaysBack,
              aiSelectedSortColumns=None):
     WuiListContentBase.__init__(
         self,
         aoEntries,
         iPage,
         cItemsPerPage,
         tsEffective,
         'System Changelog',
         fnDPrint=fnDPrint,
         oDisp=oDisp,
         aiSelectedSortColumns=aiSelectedSortColumns)
     self._asColumnHeaders = ['When', 'User', 'Event', 'Details']
     self._asColumnAttribs = ['align="center"', 'align="center"', '', '']
     self._oBuildBlacklistLogic = BuildBlacklistLogic(oDisp.getDb())
     self._oBuildLogic = BuildLogic(oDisp.getDb())
     self._oBuildSourceLogic = BuildSourceLogic(oDisp.getDb())
     self._oFailureCategoryLogic = FailureCategoryLogic(oDisp.getDb())
     self._oFailureReasonLogic = FailureReasonLogic(oDisp.getDb())
     self._oGlobalResourceLogic = GlobalResourceLogic(oDisp.getDb())
     self._oSchedGroupLogic = SchedGroupLogic(oDisp.getDb())
     self._oTestBoxLogic = TestBoxLogic(oDisp.getDb())
     self._oTestCaseLogic = TestCaseLogic(oDisp.getDb())
     self._oTestGroupLogic = TestGroupLogic(oDisp.getDb())
     self._oUserAccountLogic = UserAccountLogic(oDisp.getDb())
     self._sPrevDate = ''
     _ = cDaysBack
Example #8
0
    def __init__(self,
                 aoEntries,
                 iPage,
                 cItemsPerPage,
                 tsEffective,
                 fnDPrint,
                 oDisp,
                 aiSelectedSortColumns=None):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle='Failure Categories',
            sId='failureCategories',
            fnDPrint=fnDPrint,
            oDisp=oDisp,
            aiSelectedSortColumns=aiSelectedSortColumns)

        self._asColumnHeaders = [
            'ID', 'Short Description', 'Full Description', 'Actions'
        ]
        self._asColumnAttribs = [
            'align="right"', 'align="center"', 'align="center"',
            'align="center"'
        ]
Example #9
0
 def __init__(self,
              aoEntries,
              iPage,
              cItemsPerPage,
              tsEffective,
              fnDPrint,
              oDisp,
              aiSelectedSortColumns=None):
     WuiListContentBase.__init__(
         self,
         aoEntries,
         iPage,
         cItemsPerPage,
         tsEffective,
         sTitle='Test Cases',
         fnDPrint=fnDPrint,
         oDisp=oDisp,
         aiSelectedSortColumns=aiSelectedSortColumns)
     self._asColumnHeaders = \
     [
         'Name', 'Active', 'Timeout', 'Base Command / Variations', 'Validation Kit Files',
         'Test Case Prereqs', 'Global Rsrces', 'Note', 'Actions'
     ]
     self._asColumnAttribs = \
     [
         '', '', 'align="center"', '', '',
         'valign="top"', 'valign="top"', 'align="center"', 'align="center"'
     ]
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp, aiSelectedSortColumns = None):
     WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                 sTitle = 'Registered User Accounts', sId = 'users', fnDPrint = fnDPrint, oDisp = oDisp,
                                 aiSelectedSortColumns = aiSelectedSortColumns);
     self._asColumnHeaders = ['User ID', 'Name', 'E-mail', 'Full Name', 'Login Name', 'Access', 'Actions'];
     self._asColumnAttribs = ['align="center"', 'align="center"', 'align="center"', 'align="center"', 'align="center"',
                              'align="center"', 'align="center"', ];
Example #11
0
 def __init__(self,
              aoEntries,
              iPage,
              cItemsPerPage,
              tsEffective,
              fnDPrint,
              oDisp,
              aiSelectedSortColumns=None):
     WuiListContentBase.__init__(
         self,
         aoEntries,
         iPage,
         cItemsPerPage,
         tsEffective,
         sTitle='Registered Build Sources',
         sId='build sources',
         fnDPrint=fnDPrint,
         oDisp=oDisp,
         aiSelectedSortColumns=aiSelectedSortColumns)
     self._asColumnHeaders = [
         'ID', 'Name', 'Description', 'Product', 'Branch', 'Build Types',
         'OS/ARCH', 'First Revision', 'Last Revision', 'Max Age', 'Actions'
     ]
     self._asColumnAttribs = [
         'align="center"', 'align="center"', 'align="center"',
         'align="center"', 'align="center"', 'align="left"', 'align="left"',
         'align="center"', 'align="center"', 'align="center"',
         'align="center"'
     ]
Example #12
0
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp, aiSelectedSortColumns = None):
     WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                 sTitle = 'Registered User Accounts', sId = 'users', fnDPrint = fnDPrint, oDisp = oDisp,
                                 aiSelectedSortColumns = aiSelectedSortColumns);
     self._asColumnHeaders = ['User ID', 'Name', 'E-mail', 'Full Name', 'Login Name', 'Access', 'Actions'];
     self._asColumnAttribs = ['align="center"', 'align="center"', 'align="center"', 'align="center"', 'align="center"',
                              'align="center"', 'align="center"', ];
Example #13
0
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
     WuiListContentBase.__init__(
         self, aoEntries, iPage, cItemsPerPage, tsEffective, sTitle="Test Cases", fnDPrint=fnDPrint, oDisp=oDisp
     )
     self._asColumnHeaders = [
         "Name",
         "Active",
         "Timeout",
         "Base Command / Variations",
         "Validation Kit Files",
         "Test Case Prereqs",
         "Global Rsrces",
         "Note",
         "Actions",
     ]
     self._asColumnAttribs = [
         "",
         "",
         'align="center"',
         "",
         "",
         'valign="top"',
         'valign="top"',
         'align="center"',
         'align="center"',
     ]
Example #14
0
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint,
                 oDisp):
        WuiListContentBase.__init__(self,
                                    aoEntries,
                                    iPage,
                                    cItemsPerPage,
                                    tsEffective,
                                    sTitle='Registered Scheduling Groups',
                                    sId='schedgroups',
                                    fnDPrint=fnDPrint,
                                    oDisp=oDisp)

        self._asColumnHeaders = [
            'ID',
            'Name',
            'Enabled',
            'Scheduler Type',
            'Build Source',
            'Validation Kit Source',
            'Test Groups',
            'TestBoxes',
            'Actions',
        ]

        self._asColumnAttribs = [
            'align="right"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            '',
            '',
            'align="center"',
        ]
    def __init__(self,
                 aoEntries,
                 iPage,
                 cItemsPerPage,
                 tsEffective,
                 fnDPrint,
                 oDisp,
                 aiSelectedSortColumns=None):
        assert len(aoEntries) == 0 or isinstance(aoEntries[0], TestGroupDataEx)

        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle='Test Groups',
            fnDPrint=fnDPrint,
            oDisp=oDisp,
            aiSelectedSortColumns=aiSelectedSortColumns)
        self._asColumnHeaders = [
            'ID', 'Name', 'Description', 'Test Cases', 'Note', 'Actions'
        ]
        self._asColumnAttribs = [
            'align="right"', '', '', '', 'align="center"', 'align="center"'
        ]
    def __init__(self,
                 aoEntries,
                 iPage,
                 cItemsPerPage,
                 tsEffective,
                 fnDPrint,
                 oDisp,
                 aiSelectedSortColumns=None):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle='Builds',
            sId='builds',
            fnDPrint=fnDPrint,
            oDisp=oDisp,
            aiSelectedSortColumns=aiSelectedSortColumns)

        self._asColumnHeaders = [
            'ID', 'Product', 'Branch', 'Version', 'Type', 'OS(es)', 'Author',
            'Added', 'Files', 'Action'
        ]
        self._asColumnAttribs = [
            'align="right"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', '', 'align="center"'
        ]
Example #17
0
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        assert len(aoEntries) == 0 or isinstance(aoEntries[0], TestGroupDataEx)

        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Test Groups', fnDPrint = fnDPrint, oDisp = oDisp);
        self._asColumnHeaders = [ 'ID', 'Name', 'Description', 'Test Cases', 'Actions' ];
        self._asColumnAttribs = [ 'align="right"', '', '', '', 'align="center"' ];
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Global Resources', sId = 'globalResources',
                                    fnDPrint = fnDPrint, oDisp = oDisp)

        self._asColumnHeaders = ['ID', 'Name', 'Description', 'Enabled', 'Actions' ]
        self._asColumnAttribs = ['align="right"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"']
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        assert len(aoEntries) == 0 or isinstance(aoEntries[0], TestGroupDataEx)

        WuiListContentBase.__init__(
            self, aoEntries, iPage, cItemsPerPage, tsEffective, sTitle="Test Groups", fnDPrint=fnDPrint, oDisp=oDisp
        )
        self._asColumnHeaders = ["ID", "Name", "Description", "Test Cases", "Actions"]
        self._asColumnAttribs = ['align="right"', "", "", "", 'align="center"']
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp, aiSelectedSortColumns = None):
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Failure Reasons', sId = 'failureReasons',
                                    fnDPrint = fnDPrint, oDisp = oDisp, aiSelectedSortColumns = aiSelectedSortColumns);

        self._asColumnHeaders = ['ID', 'Category', 'Short Description',
                                 'Full Description', 'Ticket', 'External References', 'Actions' ]

        self._asColumnAttribs = ['align="right"', 'align="center"', 'align="center"',
                                 'align="center"',' align="center"', 'align="center"', 'align="center"']
Example #21
0
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Failure Reasons', sId = 'failureReasons',
                                    fnDPrint = fnDPrint, oDisp = oDisp);

        self._asColumnHeaders = ['ID', 'Category', 'Short Description',
                                 'Full Description', 'Ticket', 'External References', 'Actions' ]

        self._asColumnAttribs = ['align="right"', 'align="center"', 'align="center"',
                                 'align="center"',' align="center"', 'align="center"', 'align="center"']
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Builds', sId = 'builds', fnDPrint = fnDPrint, oDisp = oDisp);

        self._asColumnHeaders = ['ID', 'Product', 'Branch', 'Version',
                                 'Type', 'OS(es)', 'Author', 'Added',
                                 'Files', 'Action' ];
        self._asColumnAttribs = ['align="right"', 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"', 'align="center"',
                                 '', 'align="center"'];
Example #23
0
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
     WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                 sTitle = 'Registered Build Sources', sId = 'build sources',
                                 fnDPrint = fnDPrint, oDisp = oDisp);
     self._asColumnHeaders = ['ID', 'Name', 'Description', 'Product',
                              'Branch', 'Build Types', 'OS/ARCH', 'First Revision', 'Last Revision', 'Max Age',
                              'Actions' ];
     self._asColumnAttribs = ['align="center"', 'align="center"', 'align="center"', 'align="center"', 'align="center"',
                              'align="left"', 'align="left"', 'align="center"', 'align="center"', 'align="center"',
                              'align="center"' ];
Example #24
0
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint,
              oDisp):
     WuiListContentBase.__init__(self,
                                 aoEntries,
                                 iPage,
                                 cItemsPerPage,
                                 tsEffective,
                                 'System Log',
                                 fnDPrint=fnDPrint,
                                 oDisp=oDisp)
     self._asColumnHeaders = ['Date', 'Event', 'Message', 'Action']
     self._asColumnAttribs = ['', '', '', 'align="center"']
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Build Blacklist', sId = 'buildsBlacklist',
                                    fnDPrint = fnDPrint, oDisp = oDisp);

        self._asColumnHeaders = ['ID', 'Failure Reason',
                                 'Product', 'Branch', 'Type',
                                 'OS(es)', 'First Revision', 'Last Revision',
                                 'Actions' ]
        self._asColumnAttribs = ['align="right"', 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"' ]
Example #26
0
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
     WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                 sTitle = 'Test Cases', fnDPrint = fnDPrint, oDisp = oDisp);
     self._asColumnHeaders = \
     [
         'Name', 'Active', 'Default Timeout', 'Base Command / Variations', 'Validation Kit Files',
         'Test Case Prereqs', 'Global Resources', 'Actions'
     ];
     self._asColumnAttribs = \
     [
         '', '', '', '', '',
         'valign="top"', 'valign="top"', 'align="center"'
     ];
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Registered Scheduling Groups', sId = 'schedgroups',
                                    fnDPrint = fnDPrint, oDisp = oDisp);

        self._asColumnHeaders = [
            'ID',  'Name', 'Enabled', 'Scheduler Type',
            'Build Source', 'Validation Kit Source', 'Test Groups', 'TestBoxes', 'Actions',
        ];

        self._asColumnAttribs = [
            'align="right"', 'align="center"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', '', '', 'align="center"',
        ];
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle="Failure Categories",
            sId="failureCategories",
            fnDPrint=fnDPrint,
            oDisp=oDisp,
        )

        self._asColumnHeaders = ["ID", "Short Description", "Full Description", "Actions"]
        self._asColumnAttribs = ['align="right"', 'align="center"', 'align="center"', 'align="center"']
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp, cDaysBack, aiSelectedSortColumns = None):
     WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, 'System Changelog',
                                 fnDPrint = fnDPrint, oDisp = oDisp, aiSelectedSortColumns = aiSelectedSortColumns);
     self._asColumnHeaders = [ 'When', 'User', 'Event', 'Details' ];
     self._asColumnAttribs = [ 'align="center"', 'align="center"', '', '' ];
     self._oBuildBlacklistLogic  = BuildBlacklistLogic(oDisp.getDb());
     self._oBuildLogic           = BuildLogic(oDisp.getDb());
     self._oBuildSourceLogic     = BuildSourceLogic(oDisp.getDb());
     self._oFailureCategoryLogic = FailureCategoryLogic(oDisp.getDb());
     self._oFailureReasonLogic   = FailureReasonLogic(oDisp.getDb());
     self._oGlobalResourceLogic  = GlobalResourceLogic(oDisp.getDb());
     self._oSchedGroupLogic      = SchedGroupLogic(oDisp.getDb());
     self._oTestBoxLogic         = TestBoxLogic(oDisp.getDb());
     self._oTestCaseLogic        = TestCaseLogic(oDisp.getDb());
     self._oTestGroupLogic       = TestGroupLogic(oDisp.getDb());
     self._oUserAccountLogic     = UserAccountLogic(oDisp.getDb());
     self._sPrevDate             = '';
     _ = cDaysBack;
Example #30
0
    def __init__(self, aoEntries, cEntriesCount, iPage, cItemsPerPage,
                 tsEffective, fnDPrint, oDisp):
        """Override initialization"""
        WuiListContentBase.__init__(self,
                                    aoEntries,
                                    iPage,
                                    cItemsPerPage,
                                    tsEffective,
                                    sTitle='Ungrouped (%d)' % cEntriesCount,
                                    sId='results',
                                    fnDPrint=fnDPrint,
                                    oDisp=oDisp)

        self._cEntriesCount = cEntriesCount

        self._asColumnHeaders = [
            'Start',
            'Product Build',
            'Validation Kit',
            'TestBox OS',
            'TestBox Name',
            'Test Case',
            'Elapsed',
            'Result',
        ]
        self._asColumnAttribs = [
            'align="center"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', 'align="center"',
            'align="center"', 'align="center"', 'align="center"'
        ]

        # Prepare parameter lists.
        self._dTestBoxLinkParams = self._oDisp.getParameters()
        self._dTestBoxLinkParams[
            WuiMain.ksParamAction] = WuiMain.ksActionResultsGroupedByTestBox

        self._dTestCaseLinkParams = self._oDisp.getParameters()
        self._dTestCaseLinkParams[
            WuiMain.ksParamAction] = WuiMain.ksActionResultsGroupedByTestCase

        self._dRevLinkParams = self._oDisp.getParameters()
        self._dRevLinkParams[
            WuiMain.ksParamAction] = WuiMain.ksActionResultsGroupedByBuildRev
Example #31
0
    def _formatListEntryHtml(self, iEntry):
        sHtml = WuiListContentBase._formatListEntryHtml(self, iEntry);

        # Insert separator row?
        if iEntry < len(self._aoEntries):
            oEntry = self._aoEntries[iEntry] # type: SchedQueueEntry
            if oEntry.iPerSchedGroupRowNumber != self._iPrevPerSchedGroupRowNumber:
                if iEntry > 0 and iEntry + 1 < min(len(self._aoEntries), self._cItemsPerPage):
                    sHtml += '<tr class="tmseparator"><td colspan=%s> </td></tr>\n' % (len(self._asColumnHeaders),);
                self._iPrevPerSchedGroupRowNumber = oEntry.iPerSchedGroupRowNumber;
        return sHtml;
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle="Global Resources",
            sId="globalResources",
            fnDPrint=fnDPrint,
            oDisp=oDisp,
        )

        self._asColumnHeaders = ["ID", "Name", "Description", "Enabled", "Actions"]
        self._asColumnAttribs = [
            'align="right"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
        ]
Example #33
0
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle="Registered Scheduling Groups",
            sId="schedgroups",
            fnDPrint=fnDPrint,
            oDisp=oDisp,
        )

        self._asColumnHeaders = [
            "ID",
            "Name",
            "Enabled",
            "Scheduler Type",
            "Build Source",
            "Validation Kit Source",
            "Test Groups",
            "TestBoxes",
            "Note",
            "Actions",
        ]

        self._asColumnAttribs = [
            'align="right"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            "",
            "",
            'align="center"',
            'align="center"',
        ]
    def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
        WuiListContentBase.__init__(
            self,
            aoEntries,
            iPage,
            cItemsPerPage,
            tsEffective,
            sTitle="Builds",
            sId="builds",
            fnDPrint=fnDPrint,
            oDisp=oDisp,
        )

        self._asColumnHeaders = [
            "ID",
            "Product",
            "Branch",
            "Version",
            "Type",
            "OS(es)",
            "Author",
            "Added",
            "Files",
            "Action",
        ]
        self._asColumnAttribs = [
            'align="right"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            'align="center"',
            "",
            'align="center"',
        ]
Example #35
0
    def __init__(self, aoEntries, cEntriesCount, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp,
                 aiSelectedSortColumns = None):
        """Override initialization"""
        WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                    sTitle = 'Ungrouped (%d)' % cEntriesCount, sId = 'results',
                                    fnDPrint = fnDPrint, oDisp = oDisp, aiSelectedSortColumns = aiSelectedSortColumns);

        self._cEntriesCount   = cEntriesCount

        self._asColumnHeaders = [
            'Start',
            'Product Build',
            'Kit',
            'Box',
            'OS.Arch',
            'Test Case',
            'Elapsed',
            'Result',
            'Reason',
        ];
        self._asColumnAttribs = ['align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', 'align="center"', 'align="center"',
                                 'align="center"', ];


        # Prepare parameter lists.
        self._dTestBoxLinkParams = self._oDisp.getParameters();
        self._dTestBoxLinkParams[WuiMain.ksParamAction]  = WuiMain.ksActionResultsGroupedByTestBox;

        self._dTestCaseLinkParams = self._oDisp.getParameters();
        self._dTestCaseLinkParams[WuiMain.ksParamAction] = WuiMain.ksActionResultsGroupedByTestCase;

        self._dRevLinkParams = self._oDisp.getParameters();
        self._dRevLinkParams[WuiMain.ksParamAction]  = WuiMain.ksActionResultsGroupedByBuildRev;
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
     WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, 'System Log',
                                 fnDPrint = fnDPrint, oDisp = oDisp);
     self._asColumnHeaders = ['Date', 'Event', 'Message', 'Action'];
     self._asColumnAttribs = ['', '', '', 'align="center"'];
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
     WuiListContentBase.__init__(
         self, aoEntries, iPage, cItemsPerPage, tsEffective, "System Log", fnDPrint=fnDPrint, oDisp=oDisp
     )
     self._asColumnHeaders = ["Date", "Event", "Message", "Action"]
     self._asColumnAttribs = ["", "", "", 'align="center"']
 def __init__(self, aoEntries, iPage, cItemsPerPage, tsEffective, fnDPrint, oDisp):
     WuiListContentBase.__init__(self, aoEntries, iPage, cItemsPerPage, tsEffective,
                                 sTitle = 'Build Categories', sId = 'buildcategories',
                                 fnDPrint = fnDPrint, oDisp = oDisp);
     self._asColumnHeaders = ([ 'ID', 'Product', 'Repository', 'Branch', 'Build Type', 'OS/Architectures', 'Actions' ]);
     self._asColumnAttribs = (['align="right"', '', '', '', '', 'align="center"' ]);