Merge branch 'master' of ssh://lausser,shinken@shinken.git.sourceforge.net/gitroot...
[shinken.git] / shinken / objects / module.py
blobaab1f4f1ededc255dc0402ab8a7f213694ceafe1
1 #!/usr/bin/env python
2 #Copyright (C) 2009-2010 :
3 # Gabes Jean, naparuba@gmail.com
4 # Gerhard Lausser, Gerhard.Lausser@consol.de
5 # Gregory Starck, g.starck@gmail.com
6 # Hartmut Goebel, h.goebel@goebel-consult.de
8 #This file is part of Shinken.
10 #Shinken is free software: you can redistribute it and/or modify
11 #it under the terms of the GNU Affero General Public License as published by
12 #the Free Software Foundation, either version 3 of the License, or
13 #(at your option) any later version.
15 #Shinken is distributed in the hope that it will be useful,
16 #but WITHOUT ANY WARRANTY; without even the implied warranty of
17 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 #GNU Affero General Public License for more details.
20 #You should have received a copy of the GNU Affero General Public License
21 #along with Shinken. If not, see <http://www.gnu.org/licenses/>.
23 from shinken.objects.item import Item, Items
25 from shinken.property import StringProp
27 class Module(Item):
28 id = 1#0 is always special in database, so we do not take risk here
29 my_type = 'module'
31 properties = {
32 'module_name': StringProp(),
33 'module_type': StringProp(),
36 running_properties = {}
38 macros = {}
41 #For debugging purpose only (nice name)
42 def get_name(self):
43 return self.module_name
46 class Modules(Items):
47 name_property = "module_name"
48 inner_class = Module
50 def linkify(self):
51 pass
54 #We look for contacts property in contacts and
55 def explode(self):
56 pass