Package flumotion :: Package component :: Package base :: Module effectsnode
[hide private]

Source Code for Module flumotion.component.base.effectsnode

 1  # -*- Mode: Python; test-case-name: flumotion.test.test_feedcomponent010 -*- 
 2  # vi:si:et:sw=4:sts=4:ts=4 
 3   
 4  # Flumotion - a streaming media server 
 5  # Copyright (C) 2004,2005,2006,2007,2008,2009 Fluendo, S.L. 
 6  # Copyright (C) 2010,2011 Flumotion Services, S.A. 
 7  # All rights reserved. 
 8  # 
 9  # This file may be distributed and/or modified under the terms of 
10  # the GNU Lesser General Public License version 2.1 as published by 
11  # the Free Software Foundation. 
12  # This file is distributed without any warranty; without even the implied 
13  # warranty of merchantability or fitness for a particular purpose. 
14  # See "LICENSE.LGPL" in the source distribution for more information. 
15  # 
16  # Headers in this file shall remain intact. 
17   
18  """ 
19  Base class for effect ui nodes 
20  """ 
21   
22  from flumotion.component.base.baseadminnode import BaseAdminGtkNode 
23   
24   
25 -class EffectAdminGtkNode(BaseAdminGtkNode):
26 """ 27 I am a base class for all GTK+-based component effect Admin UI nodes. 28 I am a view on a set of properties for an effect on a component. 29 """ 30
31 - def __init__(self, state, admin, effectName, title=None):
32 """ 33 @param state: state of component this is a UI for 34 @type state: L{flumotion.common.planet.AdminComponentState} 35 @param admin: the admin model that interfaces with the manager for us 36 @type admin: L{flumotion.admin.admin.AdminModel} 37 """ 38 BaseAdminGtkNode.__init__(self, state, admin, title) 39 self.effectName = effectName
40
41 - def effectCallRemote(self, methodName, *args, **kwargs):
42 return self.admin.componentCallRemote(self.state, 43 "effect", self.effectName, methodName, *args, **kwargs)
44