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 __maintainer__ = 'Benjamin Kampmann <benjamin@fluendo.com>' 18 19 from elisa.base_components.action import Action 20 from elisa.core import player 21 from elisa.core import plugin_registry 22 2325 305032 33 self.debug("Clean the slideshow_model playlist") 34 uri = self.uri 35 36 parent = self.parent_model() 37 if not parent: 38 return 39 40 if not uri in self.slideshow_model.playlist: 41 self.slideshow_model.playlist[:] = [] 42 for new_uri in [child.uri for child in parent.children]: 43 self.slideshow_model.playlist.append(new_uri) 44 45 46 index = self.slideshow_model.playlist.index(uri) 47 self.slideshow_model.current_index = index 48 self.slideshow_model.preview_mode = False 49 self.slideshow_model.playing = False
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:11:10 2008 | http://epydoc.sourceforge.net |