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

Class CollectionItem

source code

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

Instance Methods [hide private]
 
__init__(self, id, deviceId='', compPath='', deviceOrganizer='', recurse=False, sequence=0, title=None, buildRelations=True) source code
 
getDesc(self, withLink=True)
Return a string that represents this item
source code
 
getRepresentedItem(self)
Get the device organizer, component or device that this collection item represents
source code
 
getDevicesAndComponents(self)
Return a list of the devices and components referenced by this item
source code
 
getNumDevicesAndComponents(self)
Return the number of devices and components matched by this item
source code

Inherited from ZenModelRM.ZenModelRM: 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 = 'CollectionItem'
  sequence = 0
  deviceId = ''
  compPath = ''
  deviceOrganizer = ''
  recurse = False
  _properties = {'id': 'sequence', 'type': 'long', 'mode': 'w'},...
  _relations = 'collection', ToOne(ToManyCont, 'Products.ZenMode...
  factory_type_information = {'immediate_view': 'editCollectionI...
  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]

__init__(self, id, deviceId='', compPath='', deviceOrganizer='', recurse=False, sequence=0, title=None, buildRelations=True)
(Constructor)

source code 
Overrides: ZenModelRM.ZenModelRM.__init__

Class Variable Details [hide private]

_properties

Value:
{'id': 'sequence', 'type': 'long', 'mode': 'w'}, {'id': 'deviceId', 't\
ype': 'string', 'mode': 'w'}, {'id': 'compPath', 'type': 'string', 'mo\
de': 'w'}, {'id': 'deviceOrganizer', 'type': 'string', 'mode': 'w'}, {\
'id': 'recurse', 'type': 'boolean', 'mode': 'w'},

_relations

Value:
'collection', ToOne(ToManyCont, 'Products.ZenModel.Collection', 'items\
'),

factory_type_information

Value:
{'immediate_view': 'editCollectionItem', 'actions':({'id': 'edit', 'na\
me': 'Collection Item', 'action': 'editCollectionItem', 'permissions':\
(Permissions.view,)},)},