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

# Class ManufacturerRoot

source code

                                                   object --+
                                                            |
                                    ZenModelBase.ZenModelBase --+
                                                                |
                                        ZenModelItem.ZenModelItem --+
                                                                    |
                       BTreeFolder2.BTreeFolder2.BTreeFolder2 --+   |
                                                                |   |
    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 necessary a HardwareClass object. | source code
createSoftwareProduct(self, prodName, manufacturer="Unknown", isOS=False, **kwargs) Return and create if necessary 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
primaryAq(self) Return self with is acquisition path set to primary path | source code
buildzProperties(self) | source code
Inherited from `ZenModelItem.ZenModelItem`: `getPrimaryPath`, `getPrimaryUrlPath` Inherited from `ZenModelBase.ZenModelBase`: `__call__`, `__hash__`, `all_meta_types`, `aqBaseHasAttr`, `breadCrumbs`, `callZenScreen`, `checkRemotePerm`, `checkValidId`, `createHierarchyObj`, `custPropertyIds`, `custPropertyMap`, `getBreadCrumbName`, `getBreadCrumbUrlPath`, `getDmd`, `getDmdObj`, `getDmdRoot`, `getHierarchyObj`, `getIconPath`, `getIdLink`, `getNowString`, `getObjByPath`, `getPrimaryDmdId`, `getUnusedId`, `getZopeObj`, `helpLink`, `isLocalName`, `manage_deleteObjects`, `prepId`, `saveCustProperties`, `todayDate`, `upToOrganizerBreadCrumbs`, `urlLink`, `view`, `visibleCustPropertyMap`, `yesterdayDate`, `zenScreenUrl`, `zenpathjoin`, `zenpathsplit`, `zentinelTabs`, `zmanage_editProperties` Inherited from `ZenModelBase.ZenModelBase` (private): `_selectedTabName` Inherited from `ZenRelations.PrimaryPathObjectManager.PrimaryPathBTreeFolder2` (private): `_delObject`, `_setObject` Inherited from `ZenPacker.ZenPacker`: `addToZenPack`, `eligiblePacks`, `findObject`

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` Inherited from `ZenModelBase.ZenModelBase` (private): `_zendoc`

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>

### primaryAq(self) | source code
Return self with is acquisition path set to primary path Overrides: ZenModelItem.ZenModelItem.primaryAq

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
      ,)},)},