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

Class ProductClass

source code

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

Instance Methods [hide private]

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__

    'id':'itclass', 'type':'string', 'mode':'w'},
 
__init__(self, id, title="", prodName=None, productKey=None, partNumber="", description="") source code
 
type(self)
Return the type name of this product (Hardware, Software).
source code
 
count(self)
Return the number of existing instances for this class.
source code
 
getProductKey(self)
Return the first product key of the device.
source code
 
getManufacturerName(self) 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
 
manage_editProductClass(self, name="", productKeys=(), isOS=False, partNumber="", description="", REQUEST=None)
Edit a ProductClass from a web page.
source code
Class Variables [hide private]
  meta_type = "ProductClass"
  name = ""
  productKeys = []
  isOS = False
  default_catalog = "productSearch"

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

    'id':'itclass', 'type':'string', 'mode':'w'},
  _properties = {'id': 'name', 'type': 'string', 'mode': 'w'}, {...
  _relations = ZenPackable._relations+(("instances", ToMany(ToOn...
  factory_type_information = {'id': 'ProductClass', 'meta_type':...
  security = ClassSecurityInfo()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, title="", prodName=None, productKey=None, partNumber="", 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.

Class Variable Details [hide private]

_properties

Value:
{'id': 'name', 'type': 'string', 'mode': 'w'}, {'id': 'productKeys', '\
type': 'lines', 'mode': 'w'}, {'id': 'partNumber', 'type': 'string', '\
mode': 'w'}, {'id': 'description', 'type': 'string', 'mode': 'w'}, {'i\
d': 'isOS', 'type': 'boolean', 'mode': 'w'},

_relations

Value:
ZenPackable._relations+(("instances", ToMany(ToOne, "Products.ZenModel\
.MEProduct", "productClass")), ("manufacturer", ToOne(ToManyCont, "Pro\
ducts.ZenModel.Manufacturer", "products")),)

factory_type_information

Value:
{'id': 'ProductClass', 'meta_type': 'ProductClass', 'description': """\
Class to manage product information""", 'icon': 'ProductClass.gif', 'p\
roduct': 'ZenModel', 'factory': 'manage_addProductClass', 'immediate_v\
iew': 'viewProductClassOverview', 'actions':({'id': 'overview', 'name'\
: 'Overview', 'action': 'viewProductClassOverview', 'permissions':(per\
missions.view,)}, {'id': 'edit', 'name': 'Edit', 'action': 'editProduc\
tClass', 'permissions':("Manage DMD",)}, {'id': 'config', 'name': 'zPr\
operties', 'action': 'zPropertyEdit', 'permissions':("Manage DMD",)}, \
...