Changeset 65226 in vbox for trunk/src/VBox/ValidationKit/testmanager/webui/wuibase.py
- Timestamp:
- Jan 10, 2017 3:36:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuibase.py
r65086 r65226 82 82 ## The name of the list-action parameter (WuiListContentWithActionBase). 83 83 ksParamListAction = 'ListAction'; 84 85 ## One or more columns to sort by. 86 ksParamSortColumns = 'SortBy'; 84 87 85 88 ## The name of the change log enabled/disabled parameter. … … 801 804 cItemsPerPage = self.getIntParam(self.ksParamItemsPerPage, iMin = 2, iMax = 9999, iDefault = 300); 802 805 iPage = self.getIntParam(self.ksParamPageNo, iMin = 0, iMax = 999999, iDefault = 0); 806 aiSortColumnsDup = self.getListOfIntParams(self.ksParamSortColumns, iMin = 0, 807 iMax = getattr(oLogicType, 'kcMaxSortColumns', 0), aiDefaults = []); 808 aiSortColumns = []; 809 for iSortColumn in aiSortColumnsDup: 810 if iSortColumn not in aiSortColumns: 811 aiSortColumns.append(iSortColumn); 803 812 self._checkForUnknownParameters(); 804 813 805 aoEntries = oLogicType(self._oDb).fetchForListing(iPage * cItemsPerPage, cItemsPerPage + 1, tsEffective );814 aoEntries = oLogicType(self._oDb).fetchForListing(iPage * cItemsPerPage, cItemsPerPage + 1, tsEffective, aiSortColumns); 806 815 oContent = oListContentType(aoEntries, iPage, cItemsPerPage, tsEffective, 807 816 fnDPrint = self._oSrvGlue.dprint, oDisp = self);
Note:
See TracChangeset
for help on using the changeset viewer.