Re: Trellis: ctrl.pulse
Sergey Schetinin <[email protected]> Wed, 15 Apr 2009 23:38:11 +0300
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 15, 2009 at 23:11, Sergey Schetinin <[email protected]> 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