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