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

# Class DataRoot

source code

                                                            object --+
                                                                     |
                                             ZenModelBase.ZenModelBase --+
                                                                         |
                                   ExtensionClass.Base --+               |
                                                         |               |
                             OFS.CopySupport.CopyContainer --+           |
                                                             |           |
                  ZenRelations.RelCopySupport.RelCopyContainer --+       |
                                                                 |       |
                                   ExtensionClass.Base --+       |       |
                                                         |       |       |
                             OFS.CopySupport.CopyContainer --+   |       |
                                                             |   |       |
                                   ExtensionClass.Base --+   |   |       |
                                                         |   |   |       |
                                 App.Management.Navigation --+   |       |
                                                             |   |       |
                                   ExtensionClass.Base --+   |   |       |
                                                         |   |   |       |
                                       App.Management.Tabs --+   |       |
                                                             |   |       |
                                      Acquisition.Implicit --+   |       |
                                                             |   |       |
                                        Globals.Persistent --+   |       |
                                                             |   |       |
                               ExtensionClass.Base --+       |   |       |
                                                     |       |   |       |
                webdav.EtagSupport.EtagSupport --+   |       |   |       |
                                                 |   |       |   |       |
                      webdav.Lockable.LockableItem --+       |   |       |
                                                     |       |   |       |
                              webdav.Resource.Resource --+   |   |       |
                                                         |   |   |       |
                              webdav.Collection.Collection --+   |       |
                                                             |   |       |
                               OFS.Traversable.Traversable --+   |       |
                                                             |   |       |
                               OFS.ObjectManager.ObjectManager --+       |
                                                                 |       |
                                   ExtensionClass.Base --+       |       |
                                                         |       |       |
                               ExtensionClass.Base --+   |       |       |
                                                     |   |       |       |
                            OFS.CopySupport.CopySource --+       |       |
                                                         |       |       |
                               ExtensionClass.Base --+   |       |       |
                                                     |   |       |       |
                                   App.Management.Tabs --+       |       |
                                                         |       |       |
                           OFS.Traversable.Traversable --+       |       |
                                                         |       |       |
                               ExtensionClass.Base --+   |       |       |
                                                     |   |       |       |
                             AccessControl.Owned.Owned --+       |       |
                                                         |       |       |
                                  ZenRelations.ZItem.ZItem --+   |       |
                                                             |   |       |
                                      Acquisition.Implicit --+   |       |
                                                             |   |       |
                                   ExtensionClass.Base --+   |   |       |
                                                         |   |   |       |
           AccessControl.PermissionMapping.RoleManager --+   |   |       |
                                                         |   |   |       |
                            AccessControl.Role.RoleManager --+   |       |
                                                             |   |       |
      ZenRelations.PrimaryPathObjectManager.PrimaryPathManager --+       |
                                                                 |       |
                                       ExtensionClass.Base --+   |       |
                                                             |   |       |
                                          App.Undo.UndoSupport --+       |
                                                                 |       |
    ZenRelations.PrimaryPathObjectManager.PrimaryPathObjectManager --+   |
                                                                     |   |
                                                        object --+   |   |
                                                                 |   |   |
                                       ExtensionClass.Base --+   |   |   |
                                                             |   |   |   |
                                     OFS.ZDOM.Node --+       |   |   |   |
                                                     |       |   |   |   |
                                      OFS.ZDOM.Element --+   |   |   |   |
                                                         |   |   |   |   |
                            OFS.ZDOM.ElementWithAttributes --+   |   |   |
                                                             |   |   |   |
                           OFS.PropertyManager.PropertyManager --+   |   |
                                                                 |   |   |
                ZenRelations.ZenPropertyManager.ZenPropertyManager --+   |
                                                                     |   |
                  ZenRelations.RelationshipManager.RelationshipManager --+
                                                                         |
                                               ExtensionClass.Base --+   |
                                                                     |   |
                                                OFS.History.Historical --+
                                                                         |
                                                            object --+   |
                                                                     |   |
                                                   ZenPacker.ZenPacker --+
                                                                         |
                                                     ZenModelRM.ZenModelRM --+
                                                                             |
                                                            object --+       |
                                                                     |       |
                                         OFS.OrderSupport.OrderSupport --+   |
                                                                         |   |
                                       ExtensionClass.Base --+           |   |
                                                             |           |   |
                                 OFS.CopySupport.CopyContainer --+       |   |
                                                                 |       |   |
                                       ExtensionClass.Base --+   |       |   |
                                                             |   |       |   |
                                     App.Management.Navigation --+       |   |
                                                                 |       |   |
                                       ExtensionClass.Base --+   |       |   |
                                                             |   |       |   |
                                           App.Management.Tabs --+       |   |
                                                                 |       |   |
                                          Acquisition.Implicit --+       |   |
                                                                 |       |   |
                                            Globals.Persistent --+       |   |
                                                                 |       |   |
                                   ExtensionClass.Base --+       |       |   |
                                                         |       |       |   |
                    webdav.EtagSupport.EtagSupport --+   |       |       |   |
                                                     |   |       |       |   |
                          webdav.Lockable.LockableItem --+       |       |   |
                                                         |       |       |   |
                                  webdav.Resource.Resource --+   |       |   |
                                                             |   |       |   |
                                  webdav.Collection.Collection --+       |   |
                                                                 |       |   |
                                   OFS.Traversable.Traversable --+       |   |
                                                                 |       |   |
                                   OFS.ObjectManager.ObjectManager --+   |   |
                                                                     |   |   |
                                           ExtensionClass.Base --+   |   |   |
                                                                 |   |   |   |
                                         OFS.ZDOM.Node --+       |   |   |   |
                                                         |       |   |   |   |
                                          OFS.ZDOM.Element --+   |   |   |   |
                                                             |   |   |   |   |
                                OFS.ZDOM.ElementWithAttributes --+   |   |   |
                                                                 |   |   |   |
                               OFS.PropertyManager.PropertyManager --+   |   |
                                                                     |   |   |
                                           ExtensionClass.Base --+   |   |   |
                                                                 |   |   |   |
                   AccessControl.PermissionMapping.RoleManager --+   |   |   |
                                                                 |   |   |   |
                                    AccessControl.Role.RoleManager --+   |   |
                                                                     |   |   |
                                       ExtensionClass.Base --+       |   |   |
                                                             |       |   |   |
                        webdav.EtagSupport.EtagSupport --+   |       |   |   |
                                                         |   |       |   |   |
                              webdav.Lockable.LockableItem --+       |   |   |
                                                             |       |   |   |
                                      webdav.Resource.Resource --+   |   |   |
                                                                 |   |   |   |
                                      webdav.Collection.Collection --+   |   |
                                                                     |   |   |
                                           ExtensionClass.Base --+   |   |   |
                                                                 |   |   |   |
                                       ExtensionClass.Base --+   |   |   |   |
                                                             |   |   |   |   |
                        webdav.EtagSupport.EtagSupport --+   |   |   |   |   |
                                                         |   |   |   |   |   |
                              webdav.Lockable.LockableItem --+   |   |   |   |
                                                             |   |   |   |   |
                                      webdav.Resource.Resource --+   |   |   |
                                                                 |   |   |   |
                                       ExtensionClass.Base --+   |   |   |   |
                                                             |   |   |   |   |
                                    OFS.CopySupport.CopySource --+   |   |   |
                                                                 |   |   |   |
                                       ExtensionClass.Base --+   |   |   |   |
                                                             |   |   |   |   |
                                           App.Management.Tabs --+   |   |   |
                                                                 |   |   |   |
                                   OFS.Traversable.Traversable --+   |   |   |
                                                                 |   |   |   |
                                             OFS.ZDOM.Node --+   |   |   |   |
                                                             |   |   |   |   |
                                              OFS.ZDOM.Element --+   |   |   |
                                                                 |   |   |   |
                                       ExtensionClass.Base --+   |   |   |   |
                                                             |   |   |   |   |
                                     AccessControl.Owned.Owned --+   |   |   |
                                                                 |   |   |   |
                                       ExtensionClass.Base --+   |   |   |   |
                                                             |   |   |   |   |
                                          App.Undo.UndoSupport --+   |   |   |
                                                                 |   |   |   |
                                               OFS.SimpleItem.Item --+   |   |
                                                                     |   |   |
                                           ExtensionClass.Base --+   |   |   |
                                                                 |   |   |   |
                                       OFS.FindSupport.FindSupport --+   |   |
                                                                     |   |   |
                                                     OFS.Folder.Folder --+   |
                                                                         |   |
                                           OFS.OrderedFolder.OrderedFolder --+
                                                                             |
                                                   Commandable.Commandable --+
                                                                             |
                                                   ZenMenuable.ZenMenuable --+
                                                                             |
                                                                            DataRoot

Instance Methods | [hide private]
__init__(self, id, title=None) | source code
getEventCount(self, **kwargs) Return the current event list for this managed entity. | source code
getEventClassNames(self) Get a list of all event class names within the permission scope. | source code
getDmdRoots(self) | source code
exportXmlHook(self, ofile, ignorerels) | source code
getProdStateConversions() for prodstat select edit box | source code
convertProdState(self, prodState) convert a numeric production state to a textual representation using the prodStateConversions map | source code
getStatusConversions(self) get text strings for status field | source code
convertStatus(self, status) get text strings for status field | source code
getPriorityConversions(self) | source code
convertPriority(self, priority) | source code
getInterfaceStateConversions(self) get text strings for interface status | source code
convertAttribute(self, numbValue, conversions) convert a numeric production state to a textual representation using the prodStateConversions map | source code
convertStatusToDot(self, status) | source code
getConversions(self, attribute) get the text list of itmes that convert to ints | source code
filterObjectsRegex(self, filter, objects, filteratt='id', negatefilter=0) filter a list of objects based on a regex | source code
myUserGroups(self) | source code
getAllUserGroups(self) | source code
zenoss_error_message(self, error_type, error_value, error_traceback, error_message) Return an error page that is more friendly then the standard stack trace + feedback page for ConflictErrors and MySQL errors (we need to add out of disk space errors). | source code
reportError(self) send an email to the zenoss error email address then send user to a thankyou page or an email error page. | source code
writeExportRows(self, fieldsAndLabels, objects, out=None) Write out csv rows with the given objects and fields. | source code
getUserCommandTargets(self) Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed. | source code
getUrlForUserCommands(self) Return url for page which manages user commands | source code
getEmailFrom(self) Return self.emailFrom or a suitable default | source code
boolean
    >>> dmd.Devices.checkValidId('^*')
    'The id "^*" contains characters illegal in URLs.'
    >>> dmd.Devices.checkValidId('Server')
    'The id "Server" is invalid - it is already in use.'
    >>> dmd.Devices.checkValidId('ZenTestId')
    True
checkValidId(self, id, prep_id=False) Checks a valid id | source code
setGeocodeCache(self, REQUEST=None) Store a JSON representation of the Google Maps geocode cache | source code
clearGeocodeCache(self, REQUEST=None) Clear the Google Maps cache. | source code
getGeoCache(self) | source code
goToStatusPage(self, objid, REQUEST=None) Find a device or network and redirect to its status page. | source code
getXMLEdges(self, objid, depth=1, filter="/") Get the XML representation of network nodes and edges using the obj with objid as a root | source code
getBackupFilesInfo(self) Retrieve a list of dictionaries describing the files in $ZENHOME/backups. | source code
manage_createBackup(self, includeEvents=None, includeMysqlLogin=None, timeout=120, REQUEST=None) Create a new backup file using zenbackup and the options specified in the request. | source code
manage_deleteBackups(self, fileNames=(), REQUEST=None) Delete the specified files from $ZENHOME/backups | source code
getProductName(self) Return a string that represents the Zenoss product that is installed. | source code
error_handler(self, error=None) Returns pretty messages when errors are raised in templates. | source code
isDebugMode(self) Whether we're in debug mode, so that javascript will behave accordingly | source code
versionId(self) Get a string representative of the code version, to override JS caching. | source code
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`, `createHierarchyObj`, `custPropertyIds`, `custPropertyMap`, `getBreadCrumbUrlPath`, `getDmd`, `getDmdObj`, `getDmdRoot`, `getHierarchyObj`, `getIconPath`, `getIdLink`, `getNowString`, `getObjByPath`, `getPrimaryDmdId`, `getUnusedId`, `getZopeObj`, `helpLink`, `isLocalName`, `manage_deleteObjects`, `prepId`, `saveCustProperties`, `todayDate`, `urlLink`, `view`, `visibleCustPropertyMap`, `yesterdayDate`, `zenScreenUrl`, `zenpathjoin`, `zenpathsplit`, `zentinelTabs` Inherited from `ZenRelations.RelationshipManager.RelationshipManager`: `addRelation`, `buildRelations`, `cb_isMoveable`, `checkRelations`, `exportXml`, `exportXmlProperties`, `exportXmlRelationships`, `getRelationshipManagerId`, `getRelationshipNames`, `getRelationships`, `manage_addRelation`, `manage_removeRelation`, `manage_workspace`, `moveMeBetweenRels`, `moveObject`, `removeRelation` Inherited from `ZenRelations.RelationshipManager.RelationshipManager` (private): `_getCopy`, `_notifyOfCopyTo`, `_setObject` Inherited from `ZenRelations.PrimaryPathObjectManager.PrimaryPathObjectManager` (private): `_delObject` Inherited from `ZenRelations.RelCopySupport.RelCopyContainer`: `manage_linkObjects`, `manage_renameObject`, `manage_unlinkObjects` Inherited from `ZenRelations.RelCopySupport.RelCopyContainer` (private): `_getRelName`, `_getSourceObjects`, `_verifyObjectLink`, `_verifyObjectPaste` Inherited from `OFS.OrderSupport.OrderSupport`: `getDefaultSorting`, `getObjectPosition`, `manage_move_objects_down`, `manage_move_objects_to_bottom`, `manage_move_objects_to_top`, `manage_move_objects_up`, `manage_set_default_sorting`, `moveObjectToPosition`, `moveObjectsByDelta`, `moveObjectsDown`, `moveObjectsToBottom`, `moveObjectsToTop`, `moveObjectsUp`, `orderObjects`, `setDefaultSorting`, `tpValues` Inherited from `Commandable.Commandable`: `compile`, `doCommandForTarget`, `getAqChainForUserCommands`, `getUserCommand`, `getUserCommandEnvironment`, `getUserCommandIds`, `getUserCommands`, `manage_addUserCommand`, `manage_deleteUserCommand`, `manage_doUserCommand`, `manage_editUserCommand`, `redirectToUserCommands`, `write` Inherited from `ZenMenuable.ZenMenuable`: `buildMenus`, `getMenus`, `manage_addItemsToZenMenu`, `manage_addZenMenu`, `manage_addZenMenuItem`, `manage_deleteZenMenu`, `manage_deleteZenMenuItem`, `manage_saveMenuItemOrdering` Inherited from `OFS.ObjectManager.ObjectManager`: `__class_init__`, `__getitem__`, `filtered_meta_types`, `getSiteManager`, `hasObject`, `list_imports`, `manage_FTPlist`, `manage_FTPstat`, `manage_afterAdd`, `manage_afterClone`, `manage_beforeDelete`, `manage_delObjects`, `manage_exportObject`, `manage_hasId`, `manage_importObject`, `objectIds`, `objectIds_d`, `objectItems`, `objectItems_d`, `objectMap`, `objectMap_d`, `objectValues`, `objectValues_d`, `setSiteManager`, `superValues` Inherited from `OFS.ObjectManager.ObjectManager` (private): `_checkId`, `_delOb`, `_getOb`, `_importObjectFromFile`, `_setOb`, `_subobject_permissions` Inherited from `OFS.CopySupport.CopyContainer`: `cb_dataItems`, `cb_dataValid`, `manage_CopyContainerAllItems`, `manage_CopyContainerFirstItem`, `manage_clone`, `manage_copyObjects`, `manage_cutObjects`, `manage_pasteObjects`, `manage_renameObjects`, `validClipData` Inherited from `OFS.CopySupport.CopyContainer` (private): `_get_id` Inherited from `App.Management.Navigation`: `manage_zmi_logout` Inherited from `ZenRelations.PrimaryPathObjectManager.PrimaryPathManager`: `getPrimaryId`, `getPrimaryParent`, `getPrimaryPath`, `getPrimaryUrlPath`, `primaryAq` Inherited from `ZenRelations.ZItem.ZItem`: `__len__`, `__repr__`, `getId`, `manage_editedDialog`, `raise_standardErrorMessage`, `this`, `titleOrId`, `title_and_id`, `title_or_id`, `tpURL` Inherited from `OFS.CopySupport.CopySource`: `cb_isCopyable`, `cb_userHasCopyOrMovePermission` Inherited from `OFS.CopySupport.CopySource` (private): `_canCopy`, `_postCopy`, `_setId` Inherited from `App.Management.Tabs`: `class_manage_path`, `filtered_manage_options`, `tabs_path_default`, `tabs_path_info` Inherited from `webdav.Collection.Collection`: `DELETE`, `HEAD`, `PUT`, `dav__init`, `listDAVObjects` Inherited from `webdav.Resource.Resource`: `COPY`, `LOCK`, `MKCOL`, `MOVE`, `OPTIONS`, `PROPFIND`, `PROPPATCH`, `TRACE`, `UNLOCK`, `dav__simpleifhandler`, `dav__validate`, `manage_DAVget` Inherited from `webdav.Lockable.LockableItem`: `wl_clearLocks`, `wl_delLock`, `wl_getLock`, `wl_hasLock`, `wl_isLocked`, `wl_lockItems`, `wl_lockTokens`, `wl_lockValues`, `wl_lockmapping`, `wl_setLock` Inherited from `webdav.EtagSupport.EtagSupport`: `http__etag`, `http__parseMatchList`, `http__processMatchHeaders`, `http__refreshEtag` Inherited from `OFS.Traversable.Traversable`: `absolute_url`, `absolute_url_path`, `getPhysicalPath`, `restrictedTraverse`, `unrestrictedTraverse`, `virtual_url_path` Inherited from `AccessControl.Owned.Owned`: `changeOwnership`, `getOwner`, `getOwnerTuple`, `getWrappedOwner`, `manage_changeOwnershipType`, `manage_fixupOwnershipAfterAdd`, `manage_takeOwnership`, `owner_info`, `userCanTakeOwnership` Inherited from `AccessControl.Owned.Owned` (private): `_deleteOwnershipAfterAdd` Inherited from `AccessControl.Role.RoleManager`: `ac_inherited_permissions`, `access_debug_info`, `acquiredRolesAreUsedBy`, `get_local_roles`, `get_local_roles_for_userid`, `get_valid_userids`, `has_local_roles`, `manage_access`, `manage_acquiredPermissions`, `manage_addLocalRoles`, `manage_changePermissions`, `manage_defined_roles`, `manage_delLocalRoles`, `manage_editRoles`, `manage_getUserRolesAndPermissions`, `manage_permission`, `manage_role`, `manage_setLocalRoles`, `permission_settings`, `permissionsOfRole`, `possible_permissions`, `rolesOfPermission`, `userdefined_roles`, `users_with_local_role`, `validRoles`, `valid_roles`, `validate_roles` Inherited from `AccessControl.Role.RoleManager` (private): `_addRole`, `_delRoles`, `_has_user_defined_role`, `_setRoles` Inherited from `AccessControl.PermissionMapping.RoleManager`: `manage_getPermissionMapping`, `manage_setPermissionMapping` Inherited from `AccessControl.PermissionMapping.RoleManager` (private): `_isBeingAccessedAsZClassDefinedInstanceMethod`, `_isBeingUsedAsAMethod` Inherited from `App.Undo.UndoSupport`: `get_request_var_or_attr`, `manage_undo_transactions`, `undoable_transactions` Inherited from `ZenRelations.ZenPropertyManager.ZenPropertyManager`: `deleteZenProperty`, `getOverriddenObjects`, `getProperty`, `getPropertyType`, `getZ`, `hasProperty`, `isLocal`, `manage_editProperties`, `saveZenProperties`, `setZenProperty`, `zenPropIsPassword`, `zenPropertyIds`, `zenPropertyItems`, `zenPropertyMap`, `zenPropertyOptions`, `zenPropertyPath`, `zenPropertyString` Inherited from `ZenRelations.ZenPropertyManager.ZenPropertyManager` (private): `_findParentWithProperty`, `_setPropValue`, `_setProperty`, `_updateProperty` 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__`, `__setattr__`, `__str__` Inherited from `OFS.ObjectManager.ObjectManager`: `__class_init__`, `__getitem__`, `filtered_meta_types`, `getSiteManager`, `hasObject`, `list_imports`, `manage_FTPlist`, `manage_FTPstat`, `manage_afterAdd`, `manage_afterClone`, `manage_beforeDelete`, `manage_delObjects`, `manage_exportObject`, `manage_hasId`, `manage_importObject`, `objectIds`, `objectIds_d`, `objectItems`, `objectItems_d`, `objectMap`, `objectMap_d`, `objectValues`, `objectValues_d`, `setSiteManager`, `superValues` Inherited from `OFS.ObjectManager.ObjectManager` (private): `_checkId`, `_delOb`, `_getOb`, `_importObjectFromFile`, `_setOb`, `_subobject_permissions` Inherited from `OFS.CopySupport.CopyContainer`: `cb_dataItems`, `cb_dataValid`, `manage_CopyContainerAllItems`, `manage_CopyContainerFirstItem`, `manage_clone`, `manage_copyObjects`, `manage_cutObjects`, `manage_pasteObjects`, `manage_renameObjects`, `validClipData` Inherited from `OFS.CopySupport.CopyContainer` (private): `_get_id` Inherited from `App.Management.Navigation`: `manage_zmi_logout` Inherited from `OFS.PropertyManager.PropertyManager`: `manage_addProperty`, `manage_changeProperties`, `manage_changePropertyTypes`, `manage_delProperties`, `propdict`, `propertyDescription`, `propertyIds`, `propertyItems`, `propertyLabel`, `propertyMap`, `propertyValues`, `valid_property_id` Inherited from `OFS.PropertyManager.PropertyManager` (private): `_delPropValue`, `_delProperty`, `_propertyMap`, `_wrapperCheck` Inherited from `OFS.ZDOM.ElementWithAttributes`: `getAttribute`, `getAttributeNode`, `getAttributes` Inherited from `AccessControl.Role.RoleManager`: `ac_inherited_permissions`, `access_debug_info`, `acquiredRolesAreUsedBy`, `get_local_roles`, `get_local_roles_for_userid`, `get_valid_userids`, `has_local_roles`, `manage_access`, `manage_acquiredPermissions`, `manage_addLocalRoles`, `manage_changePermissions`, `manage_defined_roles`, `manage_delLocalRoles`, `manage_editRoles`, `manage_getUserRolesAndPermissions`, `manage_permission`, `manage_role`, `manage_setLocalRoles`, `permission_settings`, `permissionsOfRole`, `possible_permissions`, `rolesOfPermission`, `userdefined_roles`, `users_with_local_role`, `validRoles`, `valid_roles`, `validate_roles` Inherited from `AccessControl.Role.RoleManager` (private): `_addRole`, `_delRoles`, `_has_user_defined_role`, `_setRoles` Inherited from `AccessControl.PermissionMapping.RoleManager`: `manage_getPermissionMapping`, `manage_setPermissionMapping` Inherited from `AccessControl.PermissionMapping.RoleManager` (private): `_isBeingAccessedAsZClassDefinedInstanceMethod`, `_isBeingUsedAsAMethod` Inherited from `OFS.ZDOM.Element`: `getChildNodes`, `getElementsByTagName`, `getFirstChild`, `getLastChild`, `getNextSibling`, `getNodeName`, `getNodeType`, `getParentNode`, `getPreviousSibling`, `getTagName` Inherited from `OFS.ZDOM.Node`: `getNodeValue`, `getOwnerDocument`, `hasChildNodes` Inherited from `App.Management.Tabs`: `class_manage_path`, `filtered_manage_options`, `tabs_path_default`, `tabs_path_info` Inherited from `webdav.Collection.Collection`: `DELETE`, `HEAD`, `PUT`, `dav__init`, `listDAVObjects` Inherited from `webdav.Resource.Resource`: `COPY`, `LOCK`, `MKCOL`, `MOVE`, `OPTIONS`, `PROPFIND`, `PROPPATCH`, `TRACE`, `UNLOCK`, `dav__simpleifhandler`, `dav__validate`, `manage_DAVget` Inherited from `webdav.Lockable.LockableItem`: `wl_clearLocks`, `wl_delLock`, `wl_getLock`, `wl_hasLock`, `wl_isLocked`, `wl_lockItems`, `wl_lockTokens`, `wl_lockValues`, `wl_lockmapping`, `wl_setLock` Inherited from `webdav.EtagSupport.EtagSupport`: `http__etag`, `http__parseMatchList`, `http__processMatchHeaders`, `http__refreshEtag` Inherited from `OFS.CopySupport.CopySource`: `cb_isCopyable`, `cb_userHasCopyOrMovePermission` Inherited from `OFS.CopySupport.CopySource` (private): `_canCopy`, `_postCopy`, `_setId` Inherited from `App.Management.Tabs`: `class_manage_path`, `filtered_manage_options`, `tabs_path_default`, `tabs_path_info` Inherited from `OFS.Traversable.Traversable`: `absolute_url`, `absolute_url_path`, `getPhysicalPath`, `restrictedTraverse`, `unrestrictedTraverse`, `virtual_url_path` Inherited from `OFS.ZDOM.Element`: `getChildNodes`, `getElementsByTagName`, `getFirstChild`, `getLastChild`, `getNextSibling`, `getNodeName`, `getNodeType`, `getParentNode`, `getPreviousSibling`, `getTagName` Inherited from `OFS.ZDOM.Node`: `getNodeValue`, `getOwnerDocument`, `hasChildNodes` Inherited from `AccessControl.Owned.Owned`: `changeOwnership`, `getOwner`, `getOwnerTuple`, `getWrappedOwner`, `manage_changeOwnershipType`, `manage_fixupOwnershipAfterAdd`, `manage_takeOwnership`, `owner_info`, `userCanTakeOwnership` Inherited from `AccessControl.Owned.Owned` (private): `_deleteOwnershipAfterAdd` Inherited from `App.Undo.UndoSupport`: `get_request_var_or_attr`, `manage_undo_transactions`, `undoable_transactions` Inherited from `OFS.FindSupport.FindSupport`: `PrincipiaFind`, `ZopeFind`, `ZopeFindAndApply`

Class Methods | [hide private]
Inherited from `ZenRelations.RelationshipManager.RelationshipManager`: `lookupSchema`

Class Variables | [hide private]
| portal_type = `'DataRoot'`
| meta_type = `'DataRoot'`
| manage_main = `OrderedFolder.manage_main`
| manage_options = `OrderedFolder.manage_options`
| _rq = `True`
| uuid = `None`
| availableVersion = `None`
| lastVersionCheck = `0`
| lastVersionCheckAttempt = `0`
| versionCheckOptIn = `True`
| reportMetricsOptIn = `True`
| acceptedTerms = `True`
| smtpHost = `'localhost'`
| pageCommand = `'$ZENHOME/bin/zensnpp localhost 444 $RECIPIENT'`
| smtpPort = `25`
| smtpUser = `''`
| smtpPass = `''`
| smtpUseTLS = `0`
| emailFrom = `''`
| iconMap = `{}`
| geomapapikey = `''`
| geocache = `''`
| version = `""`
| _properties = `{'id': 'title', 'type': 'string', 'mode': 'w'}, `...``
| _relations = `'userCommands', ToManyCont(ToOne, 'Products.ZenMo`...``
| factory_type_information = `{'id': 'DataRoot', 'meta_type': 'Da`...``
| security = `ClassSecurityInfo()`
| prodStateDashboardThresh = `1000`
| priorityDashboardThresh = `2`
| prodStateConversions = `['Production:1000', 'Pre-Production:500`...``
| priorityConversions = `['Highest:5', 'High:4', 'Normal:3', 'Low`...``
| statusConversions = `['Up:0', 'None:-1', 'No DNS:-2',]`
| interfaceStateConversions = `['up:1', 'down:2', 'testing:3', 'u`...``
| administrativeRoles = `"Administrator", "Analyst", "Engineer", `...``
| defaultDateRange = `129600`
| performanceDateRanges = `[('Hourly', 129600,), ('Daily', 864000`...``
| zPrimaryBasePath = `"", "zport"`
Inherited from `ZenModelRM.ZenModelRM`: `default_catalog`, `isInTree` Inherited from `ZenModelBase.ZenModelBase`: `index_html`, `sub_meta_types` Inherited from `ZenRelations.RelationshipManager.RelationshipManager` (private): `_operation` Inherited from `OFS.OrderedFolder.OrderedFolder`: `__implements__` Inherited from `OFS.OrderSupport.OrderSupport`: `has_order_support` Inherited from `OFS.OrderSupport.OrderSupport` (private): `_default_sort_key`, `_default_sort_reverse` Inherited from `Commandable.Commandable`: `defaultTimeout` Inherited from `OFS.ObjectManager.ObjectManager`: `isAnObjectManager`, `isPrincipiaFolderish`, `manage_addProduct`, `manage_importExportForm`, `manage_index_main`, `meta_types` Inherited from `OFS.ObjectManager.ObjectManager` (private): `_components`, `_objects` Inherited from `OFS.CopySupport.CopyContainer`: `manage_renameForm` Inherited from `App.Management.Navigation`: `manage`, `manage_copyright`, `manage_form_title`, `manage_menu`, `manage_page_footer`, `manage_page_header`, `manage_top_frame`, `manage_zmi_prefs`, `zope_quick_start` Inherited from `ZenRelations.ZItem.ZItem`: `REQUEST`, `__allow_access_to_unprotected_subobjects__`, `__name__`, `__propsets__`, `icon`, `id`, `isTopLevelPrincipiaApplicationObject`, `title` Inherited from `ZenRelations.ZItem.ZItem` (private): `_manage_editedDialog` Inherited from `App.Management.Tabs`: `manage_tabs` Inherited from `webdav.Collection.Collection`: `__dav_collection__` Inherited from `webdav.Resource.Resource`: `__dav_resource__`, `__http_methods__` Inherited from `OFS.Traversable.Traversable`: `getPhysicalRoot` Inherited from `AccessControl.Owned.Owned`: `manage_owner` Inherited from `AccessControl.Role.RoleManager`: `__ac_local_roles__`, `__ac_roles__`, `aclAChecked`, `aclEChecked`, `aclPChecked`, `manage_acquiredForm`, `manage_editLocalRoles`, `manage_listLocalRoles`, `manage_permissionForm`, `manage_reportUserPermissions`, `manage_roleForm`, `permissionMappingPossibleValues`, `selectedRoles`, `smallRolesWidget` Inherited from `AccessControl.Role.RoleManager` (private): `_method_manage_access`, `_normal_manage_access` Inherited from `App.Undo.UndoSupport`: `manage_UndoForm` Inherited from `ZenRelations.ZenPropertyManager.ZenPropertyManager`: `__pychecker__`, `manage_propertiesForm` Inherited from `ZenRelations.ZenPropertyManager.ZenPropertyManager` (private): `_onlystars` Inherited from `OFS.History.Historical`: `HistoricalRevisions`, `manage_change_history_page` Inherited from `OFS.History.Historical` (private): `_manage_historyComparePage` Inherited from `OFS.Folder.Folder`: `__ac_permissions__` Inherited from `OFS.ObjectManager.ObjectManager`: `isAnObjectManager`, `isPrincipiaFolderish`, `manage_addProduct`, `manage_importExportForm`, `manage_index_main`, `meta_types` Inherited from `OFS.ObjectManager.ObjectManager` (private): `_components`, `_objects` Inherited from `OFS.CopySupport.CopyContainer`: `manage_renameForm` Inherited from `App.Management.Navigation`: `manage`, `manage_copyright`, `manage_form_title`, `manage_menu`, `manage_page_footer`, `manage_page_header`, `manage_top_frame`, `manage_zmi_prefs`, `zope_quick_start` Inherited from `OFS.PropertyManager.PropertyManager`: `manage_propertyTypeForm`, `propertysheets` Inherited from `OFS.PropertyManager.PropertyManager` (private): `_reserved_names` Inherited from `AccessControl.Role.RoleManager`: `__ac_local_roles__`, `__ac_roles__`, `aclAChecked`, `aclEChecked`, `aclPChecked`, `manage_acquiredForm`, `manage_editLocalRoles`, `manage_listLocalRoles`, `manage_permissionForm`, `manage_reportUserPermissions`, `manage_roleForm`, `permissionMappingPossibleValues`, `selectedRoles`, `smallRolesWidget` Inherited from `AccessControl.Role.RoleManager` (private): `_method_manage_access`, `_normal_manage_access` Inherited from `App.Management.Tabs`: `manage_tabs` Inherited from `webdav.Collection.Collection`: `__dav_collection__` Inherited from `webdav.Resource.Resource`: `__dav_resource__`, `__http_methods__` Inherited from `App.Management.Tabs`: `manage_tabs` Inherited from `OFS.Traversable.Traversable`: `getPhysicalRoot` Inherited from `AccessControl.Owned.Owned`: `manage_owner` Inherited from `App.Undo.UndoSupport`: `manage_UndoForm` Inherited from `OFS.FindSupport.FindSupport`: `manage_findAdv`, `manage_findForm`, `manage_findFrame`, `manage_findResult`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, id, title=None) (Constructor) | source code
Overrides: ZenModelRM.ZenModelRM.__init__

### getProdStateConversions() | source code
  for prodstat select edit box Returns:
      return a list of tuples

### zenoss_error_message(self, error_type, error_value, error_traceback, error_message) | source code
Return an error page that is more friendly then the standard stack trace + feedback page for ConflictErrors and MySQL errors (we need to add out of disk space errors). If one of these is not found we return the old stacktrace page

### writeExportRows(self, fieldsAndLabels, objects, out=None) | source code
    Write out csv rows with the given objects and fields.
    If out is not None then call out.write() with the result and return None
    otherwise return the result.
    Each item in fieldsAndLabels is either a string representing a
     field/key/index (see getDataField) or it is a tuple of (field, label)
     where label is the string to be used in the first row as label
     for that column.
    Objects can be either dicts, lists/tuples or other objects. Field
     is interpreted as a key, index or attribute depending on what
     object is.
    Method names can be passed instead of attribute/key/indices as field.
     In this case the method is called and the return value is used in
     the export.

### getUserCommandTargets(self) | source code
Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed. Overrides: Commandable.Commandable.getUserCommandTargets

### getUrlForUserCommands(self) | source code
Return url for page which manages user commands Overrides: Commandable.Commandable.getUrlForUserCommands (inherited documentation)

### checkValidId(self, id, prep_id=False) | source code
Checks a valid id Returns: boolean
    >>> dmd.Devices.checkValidId('^*')
    'The id "^*" contains characters illegal in URLs.'
    >>> dmd.Devices.checkValidId('Server')
    'The id "Server" is invalid - it is already in use.'
    >>> dmd.Devices.checkValidId('ZenTestId')
    True
Overrides: ZenModelBase.ZenModelBase.checkValidId

### getGeoCache(self) | source code
Decorators: `@json`

### manage_createBackup(self, includeEvents=None, includeMysqlLogin=None, timeout=120, REQUEST=None) | source code
Create a new backup file using zenbackup and the options specified in the request. This method makes use of the fact that DataRoot is a Commandable in order to use Commandable.write

### getProductName(self) | source code
Return a string that represents the Zenoss product that is installed. Currently this is something like 'core' or 'enterprise'. This is used in the version check code to retrieve the available version for the correct product.

### error_handler(self, error=None) | source code
    Returns pretty messages when errors are raised in templates.

    Access this method from a template like so:
        <div tal:content="..."
             ...
             tal:on-error="structure python:here.dmd.error_handler(error)">

    @param error: A TALES.ErrorInfo instance with attributes type, value
                  and traceback.
    @return: HTML fragment with an error message

### isDebugMode(self) | source code
Whether we're in debug mode, so that javascript will behave accordingly Decorators: `@json`

Class Variable Details | [hide private]

  ### _properties Value:
      {'id': 'title', 'type': 'string', 'mode': 'w'}, {'id': 'prodStateDashb
      oardThresh', 'type': 'int', 'mode': 'w'}, {'id': 'prodStateConversions
      ', 'type': 'lines', 'mode': 'w'}, {'id': 'priorityConversions', 'type'
      : 'lines', 'mode': 'w'}, {'id': 'priorityDashboardThresh', 'type': 'in
      t', 'mode': 'w'}, {'id': 'statusConversions', 'type': 'lines', 'mode':
       'w'}, {'id': 'interfaceStateConversions', 'type': 'lines', 'mode': 'w
      '}, {'id': 'administrativeRoles', 'type': 'lines', 'mode': 'w'}, {'id'
      : 'uuid', 'type': 'string', 'mode': 'w'}, {'id': 'availableVersion', '
      ...

  ### _relations Value:
      'userCommands', ToManyCont(ToOne, 'Products.ZenModel.UserCommand', 'co
      mmandable'), ('packs', ToManyCont(ToOne, 'Products.ZenModel.ZenPack',
      'root')), ('zenMenus', ToManyCont(ToOne, 'Products.ZenModel.ZenMenu',
      'menuable')),

  ### factory_type_information Value:
      {'id': 'DataRoot', 'meta_type': 'DataRoot', 'description': """Arbitrar
      y device grouping class""", 'icon': 'DataRoot_icon.gif', 'product': 'Z
      enModel', 'factory': 'manage_addStatusMonitorconf', 'immediate_view':
      'Dashboard', 'actions':({'id': 'settings', 'name': 'Settings', 'action
      ': 'editSettings', 'permissions':("Manage DMD",)}, {'id': 'manage', 'n
      ame': 'Commands', 'action': 'dataRootManage', 'permissions':('Manage D
      MD',)}, {'id': 'users', 'name': 'Users', 'action': 'ZenUsers/manageUse
      rFolder', 'permissions':('Manage DMD',)}, {'id': 'packs', 'name': 'Zen
      ...

  ### prodStateConversions Value:
      ['Production:1000', 'Pre-Production:500', 'Test:400', 'Maintenance:300
      ', 'Decommissioned:-1',]

  ### priorityConversions Value:
      ['Highest:5', 'High:4', 'Normal:3', 'Low:2', 'Lowest:1', 'Trivial:0',]

  ### interfaceStateConversions Value:
      ['up:1', 'down:2', 'testing:3', 'unknown:4', 'dormant:5', 'notPresent:
      6', 'lowerLayerDown:7',]

  ### administrativeRoles Value:
      "Administrator", "Analyst", "Engineer", "Tester",

  ### performanceDateRanges Value:
      [('Hourly', 129600,), ('Daily', 864000,), ('Weekly', 3628800,), ('Mont
      hly', 41472000,), ('Yearly', 62208000,)]