Package ZenModel :: Module GraphPoint :: Class GraphPoint
[hide private]
[frames] | no frames]

Class GraphPoint

source code

                                                   object --+        
                                                            |        
                                    ZenModelBase.ZenModelBase --+    
                                                                |    
Products.ZenRelations.RelationshipManager.RelationshipManager --+    
                                                                |    
                                      ExtensionClass.Base --+   |    
                                                            |   |    
                                       OFS.History.Historical --+    
                                                                |    
                                                   object --+   |    
                                                            |   |    
                                          ZenPacker.ZenPacker --+    
                                                                |    
                                            ZenModelRM.ZenModelRM --+
                                                                    |
                                                       object --+   |
                                                                |   |
                                          ZenPackable.ZenPackable --+
                                                                    |
                                                                   GraphPoint

Instance Methods [hide private]
list
>>> dmd.Devices.Server.breadCrumbs()
[('/zport/dmd/Devices', 'Devices'), 
    ('/zport/dmd/Devices/Server', 'Server')]
breadCrumbs(self, terminator='dmd')
Return the breadcrumb links for this object add ActionRules list.
source code
 
manage_editProperties(self, REQUEST)
Process a save request from a GraphPoint edit screen.
source code
 
getDescription(self)
Return a description
source code
 
getTalesContext(self, thing=None, **kw)
Standard stuff to add to context for tales expressions
source code
 
talesEval(self, str, context, **kw)
return a tales evaluation of str
source code
 
getColor(self, index)
Return a string apprpriate for use as the color part of an rrd graph command.
source code
 
getThresholdColor(self, index) source code
 
getGraphCmds(self, cmds, context, rrdDir, addSummary, idx, multiid=-1, prefix='')
Build the graphing commands for this graphpoint
source code
 
getDsName(self, base, multiid=-1, prefix='') source code
 
addPrefix(self, prefix, base)
If not base then return '' elif prefix then return prefix_base else return base The result is rrd scrubbed
source code
 
scrubForRRD(self, value, namespace=None)
scrub value so it is a valid rrd variable name.
source code
 
escapeForRRD(self, value)
Escapes characters like colon ':' for use by RRDTool which would
source code

Inherited from ZenModelRM.ZenModelRM: __init__, changePythonClass, creator, editableDeviceList, findChild, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, primarySortKey, reindex_all, rename, unindex_object, viewName, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_editProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects

Inherited from ZenModelBase.ZenModelBase: __call__, __hash__, all_meta_types, aqBaseHasAttr, callZenScreen, checkRemotePerm, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getBreadCrumbUrlPath, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIconPath, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getUnusedId, getZ, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, urlLink, view, visibleCustPropertyMap, yesterdayDate, zenScreenUrl, zenpathjoin, zenpathsplit, zentinelTabs

Inherited from OFS.History.Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy

Inherited from ZenPacker.ZenPacker: addToZenPack, eligiblePacks, findObject

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  isThreshold = False
  DEFAULT_FORMAT = '%5.2lf%s'
  DEFAULT_LEGEND = '${graphPoint/id}'
  DEFAULT_MULTIGRAPH_LEGEND = '${here/name | here/id} ${graphPoi...
  sequence = 0
  _properties = {'id': 'sequence', 'type': 'long', 'mode': 'w'},
  _relations = ZenPackable._relations+(("graphDef", ToOne(ToMany...
  factory_type_information = {'immediate_view': 'editGraphPoint'...
  colors = '#00cc00', '#0000ff', '#00ffff', '#ff0000', '#ff9900'...
  security = ClassSecurityInfo()

Inherited from ZenModelRM.ZenModelRM: default_catalog, isInTree, meta_type

Inherited from ZenModelBase.ZenModelBase: index_html, sub_meta_types

Inherited from OFS.History.Historical: HistoricalRevisions, __ac_permissions__, manage_change_history_page, manage_options

Inherited from OFS.History.Historical (private): _manage_historyComparePage

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

breadCrumbs(self, terminator='dmd')

source code 
Return the breadcrumb links for this object add ActionRules list. [('url','id'), ...]
Returns: list
>>> dmd.Devices.Server.breadCrumbs()
[('/zport/dmd/Devices', 'Devices'), 
    ('/zport/dmd/Devices/Server', 'Server')]
List of tuples to create a bread crumbs
Overrides: ZenModelBase.ZenModelBase.breadCrumbs

manage_editProperties(self, REQUEST)

source code 
Process a save request from a GraphPoint edit screen. Perform validation on fields and either return error message or save results.

getColor(self, index)

source code 
Return a string apprpriate for use as the color part of an rrd graph command. The color either comes from the attribute on this object or from an offset into the self.colors list.

scrubForRRD(self, value, namespace=None)

source code 
scrub value so it is a valid rrd variable name. If namespace is provided then massage value as needed to avoid name conflicts with items in namespace.

Class Variable Details [hide private]

DEFAULT_MULTIGRAPH_LEGEND

Value:
'${here/name | here/id} ${graphPoint/id}'

_relations

Value:
ZenPackable._relations+(("graphDef", ToOne(ToManyCont, "Products.ZenMo\
del.GraphDefinition", "graphPoints")),)

factory_type_information

Value:
{'immediate_view': 'editGraphPoint', 'actions':({'id': 'edit', 'name':\
 'Graph Point', 'action': 'editGraphPoint', 'permissions':(Permissions\
.view,)},)},

colors

Value:
'#00cc00', '#0000ff', '#00ffff', '#ff0000', '#ff9900', '#cc0000', '#00\
00cc', '#0080c0', '#8080c0', '#ff0080', '#800080', '#0000a0', '#408080\
', '#808000', '#000000', '#00ff00', '#fb31fb', '#0080ff', '#ff8000', '\
#800000',