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

Class GraphReport

source code

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

Instance Methods [hide private]
string
>>> dmd.Devices.getBreadCrumbUrlPath()
'/zport/dmd/Devices'
>>> rc = dmd.Reports._getOb('Graph Reports')
>>> rc.manage_addGraphReport('test').getBreadCrumbUrlPath()
'/zport/dmd/Reports/Graph%20Reports/test/editGraphReport'
getBreadCrumbUrlPath(self)
Return the url to be used in breadcrumbs for this object.
source code
 
getThing(self, deviceId, componentPath)
Return either a device or a component, or None if not found
source code
 
manage_addGraphElement(self, deviceIds='', componentPaths='', graphIds=(), REQUEST=None)
Add a new graph report element
source code
 
manage_deleteGraphReportElements(self, ids=(), REQUEST=None)
Delete elements from this report
source code
 
manage_resequenceGraphReportElements(self, seqmap=(), origseq=(), REQUEST=None)
Reorder the sequecne of the graphs.
source code
 
getComments(self)
Returns tales-evaluated comments
source code
 
getElements(self)
get the ordered elements
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, breadCrumbs, callZenScreen, checkRemotePerm, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, 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]
  meta_type = "GraphReport"
  numColumns = 1
  numColumnsOptions = 1, 2, 3
  comments = '<div style="float: right;"><img src="img/onwhitelo...
  _properties = ZenModelRM._properties+({'id': 'comments', 'type...
  _relations = "elements", ToManyCont(ToOne, "Products.ZenModel....
  factory_type_information = {'immediate_view': 'viewGraphReport...
  security = ClassSecurityInfo()

Inherited from ZenModelRM.ZenModelRM: default_catalog, isInTree

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]

getBreadCrumbUrlPath(self)

source code 
Return the url to be used in breadcrumbs for this object.
Returns: string
>>> dmd.Devices.getBreadCrumbUrlPath()
'/zport/dmd/Devices'
>>> rc = dmd.Reports._getOb('Graph Reports')
>>> rc.manage_addGraphReport('test').getBreadCrumbUrlPath()
'/zport/dmd/Reports/Graph%20Reports/test/editGraphReport'
A url to this object
Overrides: ZenModelBase.ZenModelBase.getBreadCrumbUrlPath

Class Variable Details [hide private]

comments

Value:
'<div style="float: right;"><img src="img/onwhitelogo.png"></div>\n' '\
<div style="font-size: 16pt;">${report/id}</div>\n' '<div style="font-\
size:12pt;">${now/aDay} ${now/aMonth} ${now/day},' ' ${now/year}<br />\
\n' '${now/AMPMMinutes}\n' '</div>\n' '<div style="clear: both" />'

_properties

Value:
ZenModelRM._properties+({'id': 'comments', 'type': 'text', 'mode': 'w'\
}, {'id': 'numColumns', 'type': 'int', 'select_variable': 'numColumnOp\
tions', 'mode': 'w'},)

_relations

Value:
"elements", ToManyCont(ToOne, "Products.ZenModel.GraphReportElement", \
"report"),

factory_type_information

Value:
{'immediate_view': 'viewGraphReport', 'actions':({'name': 'Report', 'a\
ction': 'viewGraphReport', 'permissions':("View",),}, {'name': 'Edit',\
 'action': 'editGraphReport', 'permissions':("Manage DMD",),},)},