1
2
3
4
5
6
7
8
9
10
11
12
13
14 __doc__="""ZenModelItem
15
16 $Id: ZenModelItem.py,v 1.3 2003/10/04 15:54:36 edahl Exp $"""
17
18 __version__ = "$Revision: 1.3 $"[11:-2]
19
20 import urllib
21
22 from Globals import InitializeClass
23 from AccessControl import ClassSecurityInfo
24
25 from Products.ZenUtils.Utils import getObjByPath
26
27 from ZenModelBase import ZenModelBase
28
30 """
31 Simple class that non RelationshipManager items inherit from to
32 provide primary path functionality.
33 """
34
35 meta_type = 'ZenModelItem'
36
37 security = ClassSecurityInfo()
38
39
42
43
44 security.declareProtected('View', 'getPrimaryPath')
46 return self.getPhysicalPath()
47
48
49 security.declareProtected('View', 'getPrimaryUrlPath')
51 """get the physicalpath as a url"""
52 return self.absolute_url_path()
53
54
56 """return this object with is acquisition path set to primary path"""
57 return self
58
59
60 InitializeClass(ZenModelItem)
61