<div dir="ltr">On Mon, Mar 11, 2013 at 3:01 PM, Patrick Hetu <span dir="ltr"><<a href="mailto:patrick.hetu@gmail.com" target="_blank">patrick.hetu@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">> Sure, but how will it make sure that the service is restarted when new content is found?<br>


<br>
</div>In the python-django charm I'm using a timestamp variable (an idea<br>
from someone on IRC) that triggers the reloading of the wsgi server<br>
when configuration change.<br>
<br>
See: <a href="http://bazaar.launchpad.net/~charmers/charms/precise/python-django/trunk/view/head:/hooks/config-changed#L133" target="_blank">http://bazaar.launchpad.net/~charmers/charms/precise/python-django/trunk/view/head:/hooks/config-changed#L133</a><br>


<div class="im"><br>
> It's also possible to add this to a standard library of charm tools, rather than do it in a subordinate.<br>
<br>
</div>I was thinking about one subordinate charm per vcs because I didn't<br>
wanted to install all vcs<br>
when I'm just using one of them. But that's a minor issue.<br>
<div class="im"><br>
> This might be a good time to mention there's a VCS Charm Helper<br>
<br>
</div>Yeah, extending and using those helpers would the solve the<br>
dependencies problem.<br>
<br>
I'm also copying those helpers too in all my new charms to avoid repetition<br>
and I just realized they are pretty much all in charm-tools. Maybe we<br>
could split<br>
the python version of those helpers in a python-charm-tools package an<br>
make them importable<br>
python code?<br>
<br>
<a href="http://bazaar.launchpad.net/~charmers/charms/precise/postgresql/trunk/view/head:/hooks/hooks.py" target="_blank">http://bazaar.launchpad.net/~charmers/charms/precise/postgresql/trunk/view/head:/hooks/hooks.py</a><br>


 (first half of the file)<br>
<a href="http://bazaar.launchpad.net/~charmers/charms/precise/postgresql/trunk/view/head:/hooks/helpers.py" target="_blank">http://bazaar.launchpad.net/~charmers/charms/precise/postgresql/trunk/view/head:/hooks/helpers.py</a><br>


<span class=""><font color="#888888"><br>
Patrick<br></font></span></blockquote><div><br></div><div style>That would be really helpful. We're collecting some things over at <a href="https://code.launchpad.net/~charmsupport/charmsupport/trunk">https://code.launchpad.net/~charmsupport/charmsupport/trunk</a> but it's currently a chicken-and-egg problem because you need to have charmsupport installed before it can be used, so as a short-term measure we included a copy of it when deploying a charm.</div>

</div><br clear="all"><div style>I think it's about time someone steps up and solves this problem before yet another person comes up with their own library doing the same thing.</div><div><br></div>-- <br>Sidnei<br><br>

Make the most of Ubuntu with Ubuntu One<br><a href="http://one.ubuntu.com" target="_blank">http://one.ubuntu.com</a>
</div></div>