From: "sting sting" Subject: event susbcription Date: Wed, 08 Jun 2005 16:55:07 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello, I tried to learn a little on subscription of events in xen. I saw that in SrvDaemon.py there is a subsription to '*' it his here: class EventProtocol(protocol.Protocol): def __init__(self, daemon): ....... self.subscribe(['*']) ........ and in the same class: def subscribe(self, events): self.unsubscribe() for event in events: eserver.subscribe(event, self.queue_event) ............ However , when I added in EventServer.py logging into a file of the "event" parameter, I saw the correspoding event as 'xend.*' and not as '*' (if I am not wrong. ) I see this by adding 4 lines in EventServer.py: def subscribe(self, event, handler): ....... eventlog = open("/work/logs/event.txt","a") eventlog.write(str(event)) eventlog.write(' ') eventlog.close() ........ Any idea from why is it 'xend.*' and not '*''? Or maybe I am wrong and 'xend.*' comes from a different place? In such case - from where? Regards, Sting _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/