本文整理汇总了Python中testmanager.webui.wuicontentbase.WuiListContentBase类的典型用法代码示例。如果您正苦于以下问题:Python WuiListContentBase类的具体用法?Python WuiListContentBase怎么用?Python WuiListContentBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WuiListContentBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
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"', ];
示例2: __init__
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"' ];
示例3: __init__
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;
示例4: __init__
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"',
]
示例5: __init__
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"']
示例6: __init__
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"']
示例7: __init__
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"']
示例8: __init__
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"' ];
示例9: __init__
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"'];
示例10: __init__
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"']
示例11: __init__
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"'
];
示例12: __init__
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"' ]
示例13: __init__
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"',
];
示例14: __init__
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"']
示例15: __init__
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;