Ignore:
Timestamp:
1 Oct 2012, 21:18:48 (12 years ago)
Author:
Henrik Bettermann
Message:

Add AccessCodeProcessor?.

File:
1 edited

Legend:

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

    r9219 r9265  
    220220            if not hasattr(obj, key):
    221221                continue
    222             setattr(obj, key, value)
     222            try:
     223                setattr(obj, key, value)
     224            except AttributeError:
     225                # Computed attributes can't be set.
     226                continue
    223227            log_value = getattr(value, 'code', value)
    224228            changed.append('%s=%s' % (key, log_value))
Note: See TracChangeset for help on using the changeset viewer.