Changeset 7954


Ignore:
Timestamp:
22 Mar 2012, 08:54:06 (13 years ago)
Author:
Henrik Bettermann
Message:

Sort select box items.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/batchprocessing.txt

    r7933 r7954  
    9393    >>> importerselect = browser.getControl(name='importer')
    9494    >>> importerselect.displayOptions
    95     ['Applicant Processor',
    96      'Applicants Container Processor',
    97      'CourseTicket Processor',
    98      'Payment Processor',
    99      'Student Processor',
    100      'StudentStudyCourse Processor (update only)',
    101      'StudentStudyLevel Processor',
    102      'CertificateCourse Processor',
    103      'Certificate Processor',
    104      'Course Processor',
    105      'Department Processor',
    106      'Faculty Processor']
     95    ['Applicant Processor', 'Applicants Container Processor',
     96    'CertificateCourse Processor', 'Certificate Processor',
     97    'Course Processor', 'CourseTicket Processor',
     98    'Department Processor', 'Faculty Processor',
     99    'Payment Processor', 'Student Processor',
     100    'StudentStudyCourse Processor (update only)',
     101    'StudentStudyLevel Processor', 'Verdict Processor (update only)']
    107102
    108103    >>> importerselect.getControl('Faculty Processor').selected = True
     
    262257
    263258    >>> importerselect = browser.getControl(name='importer')
    264     >>> importerselect.getControl('Course Processor', index=2).selected = True
     259    >>> importerselect.getControl('Course Processor', index=1).selected = True
    265260    >>> modeselect = browser.getControl(name='mode')
    266261    >>> modeselect.getControl(value='create').selected = True
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r7933 r7954  
    874874    def getImporters(self):
    875875        importers = getAllUtilitiesRegisteredFor(IBatchProcessor)
    876         importers = [
    877             dict(title=x.name, name=x.util_name) for x in importers]
     876        importers = sorted(
     877            [dict(title=x.name, name=x.util_name) for x in importers])
    878878        return importers
    879879
Note: See TracChangeset for help on using the changeset viewer.