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

Class ManufacturerRoot

source code

                                                        object --+        
                                                                 |        
                                         ZenModelBase.ZenModelBase --+    
                                                                     |    
                                             ZenModelItem.ZenModelItem --+
                                                                         |
Products.ZenRelations.PrimaryPathObjectManager.PrimaryPathBTreeFolder2 --+
                                                                         |
                                                            object --+   |
                                                                     |   |
                                                   ZenPacker.ZenPacker --+
                                                                         |
                                                                        ManufacturerRoot

The root organizer for manufacturers. May become a BtreeFolder2 at some point (to scale better). Has interface to manage Manufacturers and the products that they create.

Instance Methods [hide private]
 
__init__(self, id=None) source code
 
manage_addManufacturer(self, manufacturerName=None, REQUEST=None)
Add a manufacturer from UI code.
source code
 
manage_deleteManufacturers(self, ids=None, REQUEST=None)
Delete a list of manufacturers from UI.
source code
 
createManufacturer(self, manufacturerName=None)
Return and create if nessesary manufacturerName.
source code
 
getManufacturer(self, manufacturerName)
Return manufacturerName.
source code
 
getManufacturerNames(self)
return list of all companies
source code
 
getProductNames(self, mname, type=None)
return a list of all products this Manufacturer makes
source code
 
findProduct(self, query)
Find a product by is productKey.
source code
 
createHardwareProduct(self, prodName, manufacturer="Unknown", **kwargs)
Return and create if nessesary a HardwareClass object.
source code
 
createSoftwareProduct(self, prodName, manufacturer="Unknown", isOS=False, **kwargs)
Return and create if nesseary a SoftwareClass object.
source code
 
_getProduct(self, prodName, manufacturer, factory, **kwargs) source code
 
getProductsGen(self)
Return a generator that gets all products.
source code
 
reIndex(self)
Go through all devices in this tree and reindex them.
source code
 
createCatalog(self)
Create a catalog for EventClassRecord searching
source code
 
exportXml(self, ofile, ignorerels=[], root=False)
Return an xml based representation of a RelationshipManager...
source code
 
buildzProperties(self) source code

Inherited from ZenModelItem.ZenModelItem: getPrimaryPath, getPrimaryUrlPath, primaryAq

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, zmanage_editProperties

Inherited from ZenPacker.ZenPacker: addToZenPack, eligiblePacks, findObject

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

Class Variables [hide private]
  dmdRootName = "Manufacturers"
  meta_type = "ManufacturerRoot"
  sub_classes = 'Manufacturer',
  default_catalog = "productSearch"
  factory_type_information = {'id': 'Manufacturer', 'meta_type':...

Inherited from ZenModelItem.ZenModelItem: security

Inherited from ZenModelBase.ZenModelBase: index_html, sub_meta_types

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id=None)
(Constructor)

source code 
Overrides: ZenModelItem.ZenModelItem.__init__

getManufacturer(self, manufacturerName)

source code 
Return manufacturerName. If it doesn't exist, create it.

exportXml(self, ofile, ignorerels=[], root=False)

source code 
Return an xml based representation of a RelationshipManager
<object id='/Devices/Servers/Windows/dhcp160.confmon.loc' 
    module='Products.Confmon.IpInterface' class='IpInterface'>
    <property id='name'>jim</property>
    <toone></toone>
    <tomany></tomany>
    <tomanycont></tomanycont>
</object>


Class Variable Details [hide private]

factory_type_information

Value:
{'id': 'Manufacturer', 'meta_type': 'Manufacturer', 'description': """\
Arbitrary device grouping class""", 'icon': 'Manufacturer_icon.gif', '\
product': 'ZenModel', 'factory': 'manage_addManufacturer', 'immediate_\
view': 'viewManufacturers', 'actions':({'id': 'overview', 'name': 'Ove\
rview', 'action': 'viewManufacturers', 'permissions':(permissions.view\
,)}, {'id': 'viewHistory', 'name': 'Modifications', 'action': 'viewHis\
tory', 'permissions':(ZEN_VIEW_MODIFICATIONS,)},)},