Ignore:
Timestamp:
9 Jan 2013, 06:33:17 (12 years ago)
Author:
Henrik Bettermann
Message:

Forms provide unicode not str values.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/catalog.py

    r9846 r9847  
    124124            if idx_name == 'catalog':
    125125                continue
    126             if isinstance(value, str) and ('session' in idx_name
     126            if value is not None and ('session' in idx_name
    127127                or 'level' in idx_name):
    128128                value = int(value)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r9846 r9847  
    205205        exporter.export_filtered(
    206206            self.app, self.outfile,
    207             current_session=None, current_level='200')
     207            current_session=None, current_level=u'200')
    208208        result3 = open(self.outfile, 'rb').read()
    209209        exporter.export_filtered(
     
    232232        exporter.export_filtered(
    233233            self.app, self.outfile,
    234             current_session='2012', current_level='200', depcode='NA')
     234            current_session='2012', current_level=u'200', depcode='NA')
    235235        result1 = open(self.outfile, 'rb').read()
    236236        # ... and an integer
Note: See TracChangeset for help on using the changeset viewer.