Package elisa :: Package core :: Module common

Source Code for Module elisa.core.common

 1  # -*- coding: utf-8 -*- 
 2  # Moovida - Home multimedia server 
 3  # Copyright (C) 2006-2009 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 Moovida with Fluendo's plugins. 
11  # 
12  # The GPL part of Moovida is also available under a commercial licensing 
13  # agreement from Fluendo. 
14  # See "LICENSE.Moovida" in the root directory of this distribution package 
15  # for details on that license. 
16   
17  """ 
18  This module provides access to the singleton application. 
19   
20  @var  application: the Elisa application 
21  @type application: L{elisa.core.application.Application} 
22  """ 
23   
24  __maintainer__ = 'Philippe Normand <philippe@fluendo.com>' 
25   
26  application = None 
27   
28 -def set_application(app):
29 """ 30 Set the L{application} singleton's value. Overrides previous value. 31 32 @param app: the new singleton's value 33 @type app: L{Application} 34 """ 35 global application 36 application = app
37