Package elisa :: Package plugins :: Package service :: Module about_activity
[hide private]
[frames] | no frames]

Source Code for Module elisa.plugins.service.about_activity

 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 import common 
22  from elisa.core.plugin_registry import PluginNotFound, ComponentNotFound 
23  from elisa.core import plugin_registry 
24   
25  from elisa.extern.translation import gettexter, N_ 
26  T_ = gettexter('elisa-service') 
27   
28  MenuActivityClass = plugin_registry.get_component_class('base:menu_activity') 
29   
30 -class AboutActivity(MenuActivityClass):
31 32 33 menu_name = T_(N_("About")) 34 menu_icon_name = "about" 35 media_types = [] 36 37
38 - def get_model(self):
39 sub_model = self._create_menu_model(self.menu_name, self.menu_icon_name) 40 sub_model.activate_action = self._call_nothing 41 return sub_model
42
43 - def _call_nothing(self, sth):
44 return
45