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

Class MultiGraphReport

source code

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

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
 
manage_addGraphGroup(self, new_id, collectionId='', graphDefId='', REQUEST=None)
Add a new graph group
source code
 
manage_deleteGraphGroups(self, ids=(), REQUEST=None)
Delete graph groups from this report
source code
 
manage_resequenceGraphGroups(self, seqmap=(), origseq=(), REQUEST=None)
Reorder the sequence of the groups.
source code
 
getGraphGroups(self)
get the ordered groups
source code
 
getCollections(self)
Return an alpha ordered list of available collections
source code
 
manage_addCollection(self, new_id, REQUEST=None)
Add a collection
source code
 
manage_deleteCollections(self, ids=(), REQUEST=None)
Delete collections from this report
source code
 
getGraphDefs(self)
Return an ordered list of the graph definitions
source code
 
getGraphDef(self, graphDefId)
Retrieve the given graph def
source code
 
manage_addGraphDefinition(self, new_id, REQUEST=None)
Add a GraphDefinition
source code
 
manage_deleteGraphDefinitions(self, ids=(), REQUEST=None)
Remove GraphDefinitions
source code
 
manage_resequenceGraphDefs(self, seqmap=(), origseq=(), REQUEST=None)
Reorder the sequence of the GraphDefinitions.
source code
 
getDefaultGraphDefs(self, drange=None)
Construct the list of graph dicts for this report.
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 = "MultiGraphReport"
  numColumns = 1
  numColumnsOptions = 1, 2, 3
  _properties = ZenModelRM._properties+({'id': 'numColumns', 'ty...
  _relations = 'collections', ToManyCont(ToOne, 'Products.ZenMod...
  factory_type_information = {'immediate_view': 'viewMultiGraphR...
  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

getDefaultGraphDefs(self, drange=None)

source code 
Construct the list of graph dicts for this report. Similar in functionality to RRDView.getDefaultGraphDefs

Class Variable Details [hide private]

_properties

Value:
ZenModelRM._properties+({'id': 'numColumns', 'type': 'int', 'select_va\
riable': 'numColumnOptions', 'mode': 'w'},)

_relations

Value:
'collections', ToManyCont(ToOne, 'Products.ZenModel.Collection', 'repo\
rt'), ("graphGroups", ToManyCont(ToOne, "Products.ZenModel.GraphGroup"\
, "report")), ('graphDefs', ToManyCont(ToOne, 'Products.ZenModel.Graph\
Definition', 'report')),

factory_type_information

Value:
{'immediate_view': 'viewMultiGraphReport', 'actions':({'name': 'Report\
', 'action': 'viewMultiGraphReport', 'permissions':("View",),}, {'name\
': 'Edit', 'action': 'editMultiGraphReport', 'permissions':("Manage DM\
D",),},)},