Home | Trees | Indices | Help |
---|
|
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__ = 'Philippe Normand <philippe@fluendo.com>' 19 __maintainer2__ = 'Florian Boucault <florian@fluendo.com>' 20 21 22 from elisa.base_components.activity import Activity 23 from elisa.core import common 24 from elisa.core.plugin_registry import PluginNotFound, ComponentNotFound 25 26 from twisted.internet import defer 2729 """ 30 DOCME 31 """ 32 33 menu_name = "" 34 menu_icon_name = "" 35 63 6410566 """ 67 Request new menu_models for L{model}. 68 69 @param model: the model to create sub-menus for 70 @type model: L{elisa.plugins.base.models.menu_model.MenuModel} 71 """ 72 return defer.succeed(model.children)7375 """ 76 Clear the children models of L{model} removing all corresponding 77 references from the activity. 78 79 @param model: the model to clear 80 @type model: L{elisa.plugins.base.models.menu_model.MenuModel} 81 """ 82 pass83 89 9294 registry = common.application.plugin_registry 95 try: 96 activity = registry.create_component(activity_path) 97 except (PluginNotFound, ComponentNotFound), error: 98 self.warning(error) 99 activity = None 100 else: 101 activity.player_model = self.player_model 102 activity.dvd_player_model = self.dvd_player_model 103 activity.slideshow_model = self.slideshow_model 104 return activity
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:25 2008 | http://epydoc.sourceforge.net |