[PEAK] Re: Trellis: ctrl.pulse

Sergey Schetinin maluke at gmail.com
Wed Apr 15 16:38:11 EDT 2009


On Wed, Apr 15, 2009 at 23:11, Sergey Schetinin <maluke at gmail.com> wrote:
> Importing trellis from stm is ugly, and messes with lazy imports of
> trellis (as done by Importing), replacing pulse with a special cell
> doesn't seem to hard, see attached patch.

Also, install_controller is unnecessary:


stm_names = [
    'on_commit', 'on_undo', 'atomically', 'manage', 'savepoint',
    'rollback_to', 'schedule', 'cancel', 'lock', 'used', 'changed',
    'initialize', 'change_attr',
]

stm.ctrl = ctrl = stm.Controller() #stm.LocalController()
globals().update([(name, getattr(ctrl, name)) for name in stm_names])
__all__ += stm_names
del name, stm_names


More information about the PEAK mailing list