Trees | Indices | Help |
|
---|
|
1 ############################################################################## 2 # 3 # Copyright (C) Zenoss, Inc. 2007, all rights reserved. 4 # 5 # This content is made available according to terms specified in 6 # License.zenoss under the directory where your Zenoss product is installed. 7 # 8 ############################################################################## 9 10 11 __doc__="""PrintGraphPoint 12 13 Handles GraphPoints that define an rrd PRINT 14 """ 15 16 from GraphPoint import GraphPoint 17 from Globals import InitializeClass 18 from Products.ZenUtils.deprecated import deprecated23 ''' This is here so than zope will let us copy/paste/rename 24 graphpoints. 25 ''' 26 gp = PrintGraphPoint(id) 27 context._setObject(gp.id, gp) 28 if REQUEST: 29 return context.callZenScreen(REQUEST)3033 34 meta_type = 'PrintGraphPoint' 35 36 vname = '' 37 format = '' 38 strftime = '' 39 40 _properties = GraphPoint._properties + ( 41 {'id':'vname', 'type':'string', 'mode':'w'}, 42 {'id':'format', 'type':'string', 'mode':'w'}, 43 {'id':'strftime', 'type':'string', 'mode':'w'}, 44 ) 4564 65 66 InitializeClass(PrintGraphPoint) 6747 return self.format48 49 52 5356 ''' Build the graphing commands for this graphpoint 57 ''' 58 from Products.ZenUtils.Utils import unused 59 unused(multiid, rrdDir) 60 return cmds + ['PRINT:%s:%s%s' % ( 61 self.addPrefix(prefix, self.vname), 62 (self.format or self.DEFAULT_FORMAT).replace(':', '\:'), 63 self.strftime and ':%s' % self.strftime or '')]
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Mon Jul 30 17:11:16 2012 | http://epydoc.sourceforge.net |