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

Class UserSettings

source code

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

zenoss user folder has users preferences.

Instance Methods [hide private]
 
zentinelTabs(self, templateName)
Return a list of hashs that define the screen tabs for this object.
source code
 
hasNoGlobalRoles(self)
This user doesn't have global roles.
source code
 
getUserRoles(self)
Get current roles for this user.
source code
 
getUserGroupSettingsNames(self)
Return group settings objects for user
source code
 
updatePropsFromDict(self, propdict) source code
 
iseditable(self)
Can the current user edit this settings object.
source code
 
manage_beforeDelete(self, item, container)
ActionRuleWindows need to be unindexed
source code
 
manage_editUserSettings(self, password=None, sndpassword=None, roles=None, groups=None, domains=None, REQUEST=None, **kw)
Update user settings.
source code
 
manage_addActionRule(self, id=None, REQUEST=None)
Add an action rule to this object.
source code
 
getActionRules(self) source code
 
manage_addCustomEventView(self, id=None, REQUEST=None)
Add an action rule to this object.
source code
 
manage_addAdministrativeRole(self, name=None, type='device', role=None, REQUEST=None)
Add a Admin Role to this device
source code
 
manage_editAdministrativeRoles(self, ids=(), role=(), level=(), REQUEST=None)
Edit list of admin roles.
source code
 
manage_deleteAdministrativeRole(self, delids=(), REQUEST=None)
Delete a admin role to this device
source code
 
getAllAdminRoles(self)
Return all admin roles for this user and its groups
source code
 
manage_emailTest(self, REQUEST=None)
Send a test email to the given userid.
source code
 
manage_pagerTest(self, REQUEST=None)
Send a test page
source code
 
exportXmlHook(self, ofile, ignorerels)
patch to export all user configuration
source code
 
getPagerAddresses(self) source code
 
getEmailAddresses(self) source code
 
getDotNetSession(self)
Use the Zenoss.net credentials associated with this user to log in to a Zenoss.net session.
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

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 = "UserSettings"
  sub_meta_types = "ActionRule",
  email = ""
  pager = ""
  defaultPageSize = 40
  defaultEventPageSize = 30
  defaultAdminRole = "ZenUser"
  defaultAdminLevel = 1
  oncallStart = 0
  oncallEnd = 0
  escalationMinutes = 0
  dashboardState = ''
  netMapStartObject = ''
  eventConsoleRefresh = True
  zenossNetUser = ''
  zenossNetPassword = ''
  _properties = ZenModelRM._properties+({'id': 'email', 'type': ...
  _relations = "adminRoles", ToMany(ToOne, "Products.ZenModel.Ad...
  factory_type_information = {'immediate_view': 'editUserSetting...
  security = ClassSecurityInfo()

Inherited from ZenModelRM.ZenModelRM: default_catalog, isInTree

Inherited from ZenModelBase.ZenModelBase: index_html

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]

zentinelTabs(self, templateName)

source code 
Return a list of hashs that define the screen tabs for this object. [{'name':'Name','action':'template','selected':False},...]
Overrides: ZenModelBase.ZenModelBase.zentinelTabs

hasNoGlobalRoles(self)

source code 
This user doesn't have global roles. Used to limit access

Class Variable Details [hide private]

_properties

Value:
ZenModelRM._properties+({'id': 'email', 'type': 'string', 'mode': 'w'}\
, {'id': 'pager', 'type': 'string', 'mode': 'w'}, {'id': 'defaultPageS\
ize', 'type': 'int', 'mode': 'w'}, {'id': 'defaultEventPageSize', 'typ\
e': 'int', 'mode': 'w'}, {'id': 'defaultAdminRole', 'type': 'string', \
'mode': 'w'}, {'id': 'defaultAdminLevel', 'type': 'int', 'mode': 'w'},\
 {'id': 'oncallStart', 'type': 'int', 'mode': 'w'}, {'id': 'oncallEnd'\
, 'type': 'int', 'mode': 'w'}, {'id': 'escalationMinutes', 'type': 'in\
t', 'mode': 'w'}, {'id': 'dashboardState', 'type': 'string', 'mode': '\
...

_relations

Value:
"adminRoles", ToMany(ToOne, "Products.ZenModel.AdministrativeRole", "u\
serSetting"), ("messages", ToManyCont(ToOne, "Products.ZenWidgets.Pers\
istentMessage.PersistentMessage", "messageQueue")),

factory_type_information

Value:
{'immediate_view': 'editUserSettings', 'actions':({'name': 'Edit', 'ac\
tion': 'editUserSettings', 'permissions':(ZEN_CHANGE_SETTINGS,),}, {'n\
ame': 'Administered Objects', 'action': 'administeredDevices', 'permis\
sions':(ZEN_CHANGE_ADMIN_OBJECTS,)}, {'name': 'Event Views', 'action':\
 'editEventViews', 'permissions':(ZEN_CHANGE_SETTINGS,),}, {'name': 'A\
lerting Rules', 'action': 'editActionRules', 'permissions':(ZEN_CHANGE\
_ALERTING_RULES,),},)},