Package elisa :: Package base_components :: Module action
[hide private]
[frames] | no frames]

Source Code for Module elisa.base_components.action

 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   
18  __maintainer__ = 'Lionel Martin <lionel@fluendo.com>' 
19   
20   
21  from elisa.core.component import Component 
22   
23  # 
24  # Review by Benjamin Kampmann ( 24/08/2007): 
25  # Why is this for supported_file_types while all other are always (beside 
26  # the metadata) for uri.schemes? 
27  # 
28  # That is not very consistent and does not make much sense: an action maybe 
29  # able to download a http-image but not a flickr-uri-based one. but both are 
30  # for the same file-type. 
31  # 
32  # FIXME: we need to define WHAT an Action is !!!!! 
33   
34   
35 -class Action(Component):
36 """ 37 DOCME 38 39 @ivar supported_file_types: DOCME 40 @type supported_file_types: tuple of strings 41 @cvar label: DOCME 42 @type label: string 43 """ 44 45 # Action label 46 label='action' 47 # Tuple of supported media 48 # 'directory', 'image', 'audio', 'video' 49 supported_file_types=() 50
51 - def __call__(self, controller, origin):
52 """ 53 DOCME 54 55 @param origin: the origin of the event in Elisa world 56 can be frontend, backend or None 57 @type origin: L{elisa.core.backend.Backend} or L{elisa.core.frontend.Frontend} or None 58 """ 59 # Call is always without parameter 60 pass
61