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

Class ServiceClass

source code

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

Instance Methods [hide private]
 
__init__(self, id, serviceKeys=(), description="") source code
 
addServiceKey(self, key)
Add a key to the service keys.
source code
 
count(self)
Return count of instances in this class.
source code
 
getServiceClassName(self)
Return the full name of this service class.
source code
 
manage_afterAdd(self, item, container)
Device only propagates afterAdd if it is the added object.
source code
 
manage_afterClone(self, item)
Not really sure when this is called.
source code
 
manage_beforeDelete(self, item, container)
Device only propagates beforeDelete if we are being deleted or copied.
source code
 
saveZenProperties(self, pfilt=iszprop, REQUEST=None)
Save all ZenProperties found in the REQUEST.form object.
source code
 
deleteZenProperty(self, propname=None, REQUEST=None)
Delete device tree properties from the this DeviceClass object.
source code
 
_indexInstances(self)
index instances of this service class to ensure changes made on the Service Class are reflected in the instances indexes
source code
 
manage_editServiceClass(self, name="", monitor=False, serviceKeys="", port=0, description="", REQUEST=None)
Edit a ProductClass from a web page.
source code
 
getUserCommandTargets(self)
Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed.
source code
 
getUrlForUserCommands(self)
Return url for page which manages user commands
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 Commandable.Commandable: compile, doCommandForTarget, getAqChainForUserCommands, getUserCommand, getUserCommandEnvironment, getUserCommandIds, getUserCommands, manage_addUserCommand, manage_deleteUserCommand, manage_doUserCommand, manage_editUserCommand, redirectToUserCommands, write

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

Class Variables [hide private]
  meta_type = "ServiceClass"
  dmdRootName = "Services"
  default_catalog = "serviceSearch"
  name = ""
  serviceKeys = ()
  description = ""
  port = 0
  _properties = {'id': 'name', 'type': 'string', 'mode': 'w'}, {...
  _relations = ZenPackable._relations+(("instances", ToMany(ToOn...
  factory_type_information = {'id': 'ServiceClass', 'meta_type':...
  security = ClassSecurityInfo()

Inherited from ZenModelRM.ZenModelRM: 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

Inherited from Commandable.Commandable: defaultTimeout

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, serviceKeys=(), description="")
(Constructor)

source code 
Overrides: ZenModelRM.ZenModelRM.__init__

manage_beforeDelete(self, item, container)

source code 
Device only propagates beforeDelete if we are being deleted or copied. Moving and renaming don't propagate.

saveZenProperties(self, pfilt=iszprop, REQUEST=None)

source code 
Save all ZenProperties found in the REQUEST.form object. Overridden so that service instances can be re-indexed if needed

deleteZenProperty(self, propname=None, REQUEST=None)

source code 
Delete device tree properties from the this DeviceClass object. Overridden to intercept zMonitor changes

getUserCommandTargets(self)

source code 
Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed.
Overrides: Commandable.Commandable.getUserCommandTargets

getUrlForUserCommands(self)

source code 
Return url for page which manages user commands
Overrides: Commandable.Commandable.getUrlForUserCommands
(inherited documentation)

Class Variable Details [hide private]

_properties

Value:
{'id': 'name', 'type': 'string', 'mode': 'w'}, {'id': 'serviceKeys', '\
type': 'lines', 'mode': 'w'}, {'id': 'description', 'type': 'text', 'm\
ode': 'w'}, {'id': 'port', 'type': 'int', 'mode': 'w'},

_relations

Value:
ZenPackable._relations+(("instances", ToMany(ToOne, "Products.ZenModel\
.Service", "serviceclass")), ("serviceorganizer", ToOne(ToManyCont, "P\
roducts.ZenModel.ServiceOrganizer", "serviceclasses")), ('userCommands\
', ToManyCont(ToOne, 'Products.ZenModel.UserCommand', 'commandable')),\
)

factory_type_information

Value:
{'id': 'ServiceClass', 'meta_type': 'ServiceClass', 'icon': 'ServiceCl\
ass.gif', 'product': 'ZenModel', 'factory': 'manage_addServiceClass', \
'immediate_view': 'serviceClassStatus', 'actions':({'id': 'status', 'n\
ame': 'Status', 'action': 'serviceClassStatus', 'permissions':(Permiss\
ions.view,)}, {'id': 'edit', 'name': 'Edit', 'action': 'serviceClassEd\
it', 'permissions':("Manage DMD",)}, {'id': 'manage', 'name': 'Adminis\
tration', 'action': 'serviceClassManage', 'permissions':("Manage DMD",\
)}, {'id': 'zproperties', 'name': 'zProperties', 'action': 'zPropertyE\
...