Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: Multiple windows services on the same machine References: <4227ae83-a4a3-46b0-bc25-c5a1d89c08a4@32g2000vbe.googlegroups.com> X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney Date: Mon, 06 Jun 2011 09:01:19 +1000 Message-ID: <87vcwj3mtc.fsf@benfinney.id.au> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:0+lNUUc/Uj/BfKOQP+GIE9cRKQM= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 17 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: b954655a.news.astraweb.com X-Trace: DXC=nE5Bi^YXV^?kWcbEW9A[5UK?eNZ[SL`C\Kgc\RZRWoF;dNd Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7058 Massi writes: > So can anyone point me out which is the best way to "parametrize" the > service name? Thanks in advance for your help! Could you not make the ‘_svc_display_name’ an instance attribute instead of class attribute? That is, don't set it as an attribute on the class; instead, set it as an attribute on the instance during initialisation (the ‘__init__’ method). -- \ “Smoking cures weight problems. Eventually.” —Steven Wright | `\ | _o__) | Ben Finney