equal
deleted
inserted
replaced
479 |
479 |
480 self.refresh() |
480 self.refresh() |
481 sortable = ["name", "description", "contact", "lastchange"] |
481 sortable = ["name", "description", "contact", "lastchange"] |
482 sortcolumn, descending = sortdefault |
482 sortcolumn, descending = sortdefault |
483 if 'sort' in wsgireq.req.qsparams: |
483 if 'sort' in wsgireq.req.qsparams: |
484 sortcolum = wsgireq.req.qsparams['sort'] |
484 sortcolumn = wsgireq.req.qsparams['sort'] |
485 descending = sortcolumn.startswith('-') |
485 descending = sortcolumn.startswith('-') |
486 if descending: |
486 if descending: |
487 sortcolumn = sortcolumn[1:] |
487 sortcolumn = sortcolumn[1:] |
488 if sortcolumn not in sortable: |
488 if sortcolumn not in sortable: |
489 sortcolumn = "" |
489 sortcolumn = "" |