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

Class Collection

source code

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

Holds an assortment of devices and/or components.

Instance Methods [hide private]
 
createCollectionItem(self, orgPath='', devId='', compPath='', recurse=False, checkExists=False)
Create and insert a new CollectionItem based either on the orgPath or on devId/compPath.
source code
 
manage_addCollectionItem(self, itemType, deviceIds=(), componentPaths=(), deviceClasses=(), systems=(), groups=(), locations=(), recurse=False, REQUEST=None)
Create a new CollectionItem and add to this collection
source code
 
manage_deleteCollectionItems(self, ids=(), REQUEST=None)
Delete collection items from this report
source code
 
manage_resequenceCollectionItems(self, seqmap=(), origseq=(), REQUEST=None)
Reorder the sequence of the items.
source code
 
getItems(self)
Return an ordered list of CollectionItems
source code
 
getNumItems(self)
Return the number of collection items
source code
 
getDevicesAndComponents(self)
Return a deduped list of devices and components represented by this collection's collectionitems
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, 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]
  meta_type = 'Collection'
  _properties = ()
  _relations = 'report', ToOne(ToManyCont, 'Products.ZenModel.Mu...
  factory_type_information = {'immediate_view': 'editCollection'...
  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]

createCollectionItem(self, orgPath='', devId='', compPath='', recurse=False, checkExists=False)

source code 
Create and insert a new CollectionItem based either on the orgPath or on devId/compPath. Returns the new item.

Class Variable Details [hide private]

_relations

Value:
'report', ToOne(ToManyCont, 'Products.ZenModel.MultiGraphReport', 'col\
lections'), ('items', ToManyCont(ToOne, 'Products.ZenModel.CollectionI\
tem', 'collection')),

factory_type_information

Value:
{'immediate_view': 'editCollection', 'actions':({'id': 'edit', 'name':\
 'Collection', 'action': 'editCollection', 'permissions':(Permissions.\
view,)},)},