Changeset 8333 for main


Ignore:
Timestamp:
3 May 2012, 13:01:03 (12 years ago)
Author:
uli
Message:

Do not notify if objects stay unchanged.

File:
1 edited

Legend:

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

    r8332 r8333  
    218218            changed.append('%s=%s' % (key, log_value))
    219219
    220         # If any catalog is involved it must be updated
    221         notify(grok.ObjectModifiedEvent(obj))
     220        # If any catalog is involved it must be updated.
     221        #
     222        # XXX: The event is also triggered when creating objects as
     223        # updateEntry is called also when creating entries resulting
     224        # in objectAdded and additional objectModified events.
     225        if len(changed):
     226            notify(grok.ObjectModifiedEvent(obj))
    222227
    223228        return ', '.join(changed)
Note: See TracChangeset for help on using the changeset viewer.