Changeset 8971 for main/waeup.kofa/trunk


Ignore:
Timestamp:
10 Jul 2012, 21:51:28 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not export 'None' text string.

File:
1 edited

Legend:

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

    r8947 r8971  
    113113        if name == 'history':
    114114            value = value.messages
    115         if name == 'phone':
    116             # Append hash '#' to dates to circumvent unwanted excel automatic
     115        if name == 'phone' and value is not None:
     116            # Append hash '#' to phone numbers to circumvent
     117            # unwanted excel automatic
    117118            value = str('%s#' % value)
    118119        return super(
Note: See TracChangeset for help on using the changeset viewer.