Ignore:
Timestamp:
13 Jun 2016, 00:44:56 (8 years ago)
Author:
uli
Message:

We can use zope.publisher to enforce types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/students/browser.py

    r13908 r13922  
    31303130            scores = form['scores']
    31313131            sids = form['sids']
    3132             if isinstance(scores, basestring):
    3133                 scores = [scores]
    3134             if isinstance(sids, basestring):
    3135                 sids = [sids]
    31363132            formvals = dict([(sids[i], scores[i]) for i in range(len(sids))])
    31373133            for ticket in editable_tickets:
Note: See TracChangeset for help on using the changeset viewer.