Changeset 562:1d03568e5f67 for src


Ignore:
Timestamp:
02/22/14 06:17:08 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The light loggers became delayed loggers (re #228)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r548 r562  
    590590#---------------------------------------------------------------------------------------
    591591
    592 class LightsLogger(StateChangeLogger, SingleValueMixin, SimpleChangeMixin):
     592class LightsLogger(StateChangeLogger, SingleValueMixin, DelayedChangeMixin):
    593593    """Base class for the loggers of the various lights."""
    594594    def __init__(self, attrName, template):
     
    596596        StateChangeLogger.__init__(self)
    597597        SingleValueMixin.__init__(self, attrName)
     598        DelayedChangeMixin.__init__(self)
     599        self._getLogTimestamp = \
     600            lambda state, forced: \
     601            DelayedChangeMixin._getLogTimestamp(self, state, forced)
    598602
    599603        self._template = template
Note: See TracChangeset for help on using the changeset viewer.