Re: Trellis on_commit and Performers
"Sergey Schetinin" <[email protected]>
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <[email protected]> |
> It does that to handle this case: > > @value.connector > def value(self, sensor): > ... > > But it is clearly being over-aggressive. I've fixed this to do more > checking (ala the callback version), and added full test coverage for all > possible calling scenarios. > > The fix is checked in now, but you can also work around it by using > @value.connector() and @value.disconnector() instead (note the () on the > ends) or by naming the methods the same as the @maintain rule. Thanks.