Changes between Initial Version and Version 1 of Ticket #12680, comment 7
- Timestamp:
- Feb 10, 2017, 10:21:29 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12680, comment 7
initial v1 1 1 I think we can even use this approach to simplify the timeline web_ui.py code, which used to do something like that. 2 2 3 Please try out log:cboos.git@t1 6280-component_guard.3 Please try out log:cboos.git@t12680-component_guard. 4 4 5 5 I'd like to generalize the use of this `component_guard`, but I still wonder if there wouldn't be some even better way to do this, combining the try/except with the iteration on the components. If only we could yield multiple times in the context manager... We could use an inline function and a decorator, a bit like we did with the 0.12 DB API, but it's not that nice either: