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

Class Manufacturer

source code

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

Manufacturer object

Instance Methods [hide private]
 
count(self)
Return the number of products for this manufacturer.
source code
 
manage_addHardware(self, prodName=None, REQUEST=None)
Add a hardware product from UI code.
source code
 
manage_addSoftware(self, prodName=None, isOS=False, REQUEST=None)
Add a software product from UI code.
source code
 
moveProducts(self, moveTarget=None, ids=None, REQUEST=None)
Move product to different manufacturer.
source code
 
_getProduct(self, prodName, factory)
Add a product to this manufacturer based on its factory type.
source code
 
manage_deleteProducts(self, ids=None, REQUEST=None)
Delete a list of products from UI.
source code
 
getProductNames(self)
return a list of all products this Manufacturer makes
source code
 
manage_editManufacturer(self, id='', url='', supportNumber='', address1='', address2='', city='', state='', zip='', country='', REQUEST=None)
Edit a Manufacturer from a web page.
source code

Inherited from ZenModelRM.ZenModelRM: __init__, 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 = 'Manufacturer'
  portal_type = 'Manufacturer'
  url = ''
  supportNumber = ''
  address1 = ''
  address2 = ''
  city = ''
  state = ''
  zip = ''
  country = ''
  _properties = {'id': 'url', 'type': 'string', 'mode': 'w'}, {'...
  _relations = ZenPackable._relations+(("products", ToManyCont(T...
  factory_type_information = {'id': 'Manufacturer', 'meta_type':...
  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__

Class Variable Details [hide private]

_properties

Value:
{'id': 'url', 'type': 'string', 'mode': 'w'}, {'id': 'supportNumber', \
'type': 'string', 'mode': 'w'}, {'id': 'address1', 'type': 'string', '\
mode': 'w'}, {'id': 'address2', 'type': 'string', 'mode': 'w'}, {'id':\
 'city', 'type': 'string', 'mode': 'w'}, {'id': 'state', 'type': 'stri\
ng', 'mode': 'w'}, {'id': 'zip', 'type': 'string', 'mode': 'w'}, {'id'\
: 'country', 'type': 'string', 'mode': 'w'},

_relations

Value:
ZenPackable._relations+(("products", ToManyCont(ToOne, "Products.ZenMo\
del.ProductClass", "manufacturer")),)

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': 'viewManufacturerOverview', 'actions':({'id': 'overview', 'name\
': 'Overview', 'action': 'viewManufacturerOverview', 'permissions':(pe\
rmissions.view,)}, {'id': 'edit', 'name': 'Edit', 'action': 'editManuf\
acturer', 'permissions':("Manage DMD",)}, {'id': 'config', 'name': 'zP\
roperties', 'action': 'zPropertyEdit', 'permissions':("Manage DMD",)},\
...