1
2
3
4
5
6
7
8
9
10
11
12
13
14 __doc__="""SoftwareClass
15
16 SoftwareClass represents a software vendor's product.
17
18 $Id: SoftwareClass.py,v 1.5 2003/03/08 18:34:24 edahl Exp $"""
19
20 __version__ = "$Revision: 1.5 $"[11:-2]
21
22 from Globals import DTMLFile
23 from Globals import InitializeClass
24
25 from Products.ZenRelations.RelSchema import *
26
27 from ProductClass import ProductClass
28
37
38 addSoftwareClass = DTMLFile('dtml/addSoftwareClass',globals())
39
41 """SoftwareClass object"""
42 portal_type = meta_type = 'SoftwareClass'
43
44 build=""
45 version=""
46
47 _properties = ProductClass._properties + (
48 {'id':'version', 'type':'string', 'mode':'w'},
49 {'id':'build', 'type':'string', 'mode':'w'},
50 )
51
53 """Return the type name of this product (Hardware, Software).
54 """
55 if self.isOS:
56 return "Operating System"
57 else:
58 return self.meta_type[:-5]
59
60
61 InitializeClass(SoftwareClass)
62
63
70
71 InitializeClass(OSSoftwareClass)
72