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

Class ZenPackManager

source code

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

ZenPackManager is responsibe for managing ZenPacks

Instance Methods [hide private]
 
manage_addZenPack(self, packId, REQUEST=None)
Create a new zenpack on the filesystem with the given info.
source code
 
manage_removeZenPacks(self, ids=(), REQUEST=None)
Uninstall the given zenpacks.
source code
 
fetchZenPack(self, packName, packVersion='')
Retrieve the given zenpack from Zenoss.net and install.
source code
 
manage_installZenPack(self, zenpack=None, REQUEST=None)
Installs the given zenpack.
source code
 
getZnetProjectOptions(self)
Return a list of 2-tuples of (option value, option name) for the user to select a Zenoss.net project from.
source code
 
getZnetProjectsList(self)
Return a list of the zenoss.net projects.
source code
 
getBrokenPackName(self, ob)
Extract the zenpack name from the broken module
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 = 'ZenPackManager'
  portal_type = 'ZenPackManager'
  default_catalog = 'zenPackNameSearch'
  _relations = ZenModelRM._relations+(('packs', ToManyCont(ToOne...
  factory_type_information = {'immediate_view': 'viewZenPacks', ...
  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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

manage_addZenPack(self, packId, REQUEST=None)

source code 
Create a new zenpack on the filesystem with the given info. Install the pack. If REQUEST then render the REQUEST otherwise return the new zenpack.

manage_removeZenPacks(self, ids=(), REQUEST=None)

source code 
Uninstall the given zenpacks. Uninstall the zenpack egg. If not in development mode then also delete the egg from the filesystem.

manage_installZenPack(self, zenpack=None, REQUEST=None)

source code 
Installs the given zenpack. Zenpack is a file upload from the browser.

Class Variable Details [hide private]

_relations

Value:
ZenModelRM._relations+(('packs', ToManyCont(ToOne, 'Products.ZenModel.\
ZenPack', 'manager')),)

factory_type_information

Value:
{'immediate_view': 'viewZenPacks', 'actions':({'id': 'settings', 'name\
': 'Settings', 'action': '../editSettings', 'permissions':("Manage DMD\
",)}, {'id': 'manage', 'name': 'Commands', 'action': '../dataRootManag\
e', 'permissions':('Manage DMD',)}, {'id': 'users', 'name': 'Users', '\
action': '../ZenUsers/manageUserFolder', 'permissions':('Manage DMD',)\
}, {'id': 'packs', 'name': 'ZenPacks', 'action': 'viewZenPacks', 'perm\
issions':("Manage DMD",)}, {'id': 'jobs', 'name': 'Jobs', 'action': '.\
./joblist', 'permissions':("Manage DMD",)}, {'id': 'menus', 'name': 'M\
...