<div dir="ltr">Hi Jonas,<br><br><br>I strongly prefer to pass the options around (through the Service objects you're making) rather than relying on the global state of the plugin instance.<br><br><br>hth<br>lvh<br><br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 2:02 PM, Jonas Brunsgaard <span dir="ltr"><<a href="mailto:jonas.brunsgaard@gmail.com" target="_blank">jonas.brunsgaard@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Everybody<div><br></div><div>What is the prefered way to get the options object from the servicemaker when using twistd plugins.</div>

<div><br></div><div>I guess i could access the object via</div><div>

<br></div><div>from twisted.plugins.my_plugin import myServiceMaker</div><div>options = myServicemMaker.options</div><div><br></div><div>But is there a better way to do it? Somthing like</div><div><br></div><div>from somwhere import get_service_config()</div>



<div>options =  get_service_config()</div><div><br></div><div>All the best</div><div><br></div><div>--</div><div>Brunsgaard</div><div><br></div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br></div>