Package elisa :: Package core :: Package observers :: Module observer
[hide private]
[frames] | no frames]

Source Code for Module elisa.core.observers.observer

 1  # -*- coding: utf-8 -*- 
 2  # Elisa - Home multimedia server 
 3  # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 
 4  # All rights reserved. 
 5  # 
 6  # This file is available under one of two license agreements. 
 7  # 
 8  # This file is licensed under the GPL version 3. 
 9  # See "LICENSE.GPL" in the root of this distribution including a special 
10  # exception to use Elisa with Fluendo's plugins. 
11  # 
12  # The GPL part of Elisa is also available under a commercial licensing 
13  # agreement from Fluendo. 
14  # See "LICENSE.Elisa" in the root directory of this distribution package 
15  # for details on that license. 
16   
17  __maintainer__ = 'Florian Boucault <florian@fluendo.com>' 
18   
19   
20 -class Observer(object):
21 """Instances of Observer are notified of changes happening in the 22 L{elisa.core.observers.observable.Observable} instance they are 23 attached to. 24 """ 25
26 - def attribute_set(self, origin, key, old_value, new_value):
27 """Called when an attribute of the observed object is changed. 28 29 @param origin: observed object for which the attribute is changed 30 @type origin: any 31 @param key: attribute changed 32 @type key: string 33 @param old_value: value of the attribute before being set; None if 34 attribute was not existing 35 @type old_value: any 36 @param new_value: value of the attribute after being set 37 @type new_value: any 38 """ 39 pass
40