Package elisa :: Package plugins :: Package good :: Package pigment :: Module pigment
[hide private]
[frames] | no frames]

Source Code for Module elisa.plugins.good.pigment.pigment

 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   
20  from elisa.core import plugin 
21  from elisa.core import component 
22   
23 -class PigmentPlugin(plugin.Plugin):
24 name = "pigment" 25 config_file = "plugin.conf" 26 27 @classmethod
28 - def check_dependencies(cls):
29 plugin.Plugin.check_dependencies() 30 31 # check if old version of Pigment is installed 32 try: 33 from pgm import render 34 except ImportError: 35 pass 36 else: 37 reason = "Pigment 0.1.x detected. Please uninstall it and install at least the 0.3.1 version" 38 raise component.UnMetDependency(cls.name, reason)
39