charms.reactive 0.4.0 release

Cory Johns cory.johns at canonical.com
Thu Mar 3 20:47:49 UTC 2016


A new version of charms.reactive (0.4.0) has been released
<https://pypi.python.org/pypi/charms.reactive>.  As it is backwards
compatible, it will automatically be updated whenever you rebuild a layered
charm.

It includes the following changes:

  * New @when_any
<https://pythonhosted.org/charms.reactive/charms.reactive.decorators.html#charms.reactive.decorators.when_any>
and @when_not_all
<https://pythonhosted.org/charms.reactive/charms.reactive.decorators.html#charms.reactive.decorators.when_not_all>
decorators
  * Fix for some files in interface layers being mistakenly treated as
reactive handlers

The @when_any decorator works particularly well with the
config.changed.{varname}
<https://github.com/juju-solutions/layer-basic#reactive-states> and
leadership.changed.{varname}
<https://git.launchpad.net/layer-leadership/tree/README.md#n30> states
provided by the base and leadership layers, respectively.  Note that, like
@when_none, it never passes in an argument.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160303/35eb0253/attachment.html>


More information about the Juju mailing list