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

# Class ZentinelPortal

source code

    CMFCore.PortalObject.PortalObjectBase --+
                                            |
                                           ZentinelPortal

The *only* function this class should have is to help in the setup of a new ZentinelPortal. It should not assist in the functionality at all.

Instance Methods | [hide private]
__init__(self, id, title='') | source code
server_time(self) | source code
_additionalQuery(self) | source code
searchDevices(self, queryString='', REQUEST=None) Returns the concatenation of a device name, ip and mac search on the list of devices. | source code
searchComponents(self, device='', component='', REQUEST=None) Redirect to the component of a device. | source code
dotNetProxy(self, path='', params={}, REQUEST=None) Logs in to Zenoss.net using the user's credentials and retrieves data, thereby putting it in the current domain | source code
isManager(self, obj=None) Return true if user is authenticated and has Manager role. | source code
has_role(self, role, obj=None) Check to see of a user has a role. | source code
has_permission(self, perm, obj=None) Check to see of a user has a permission. | source code
getZenossVersionShort(self) | source code
getLoginButton(self) | source code
getExtraLoginFormContents(self) On first run, log us in as admin automatically. | source code

Class Variables | [hide private]
| meta_type = `'ZentinelPortal'`
| _properties = `{'id': 'title', 'type': 'string'}, {'id': 'descr`...``
| title = `''`
| description = `''`
| security = `ClassSecurityInfo()`

Method Details | [hide private]

### searchComponents(self, device='', component='', REQUEST=None) | source code
Redirect to the component of a device. Hopefully.

### getExtraLoginFormContents(self) | source code
On first run, log us in as admin automatically. This is done via a proxy form with hidden fields, so that the browser doesn't ask to save the password (which will be changed on the next screen).

Class Variable Details | [hide private]

  ### _properties Value:
      {'id': 'title', 'type': 'string'}, {'id': 'description', 'type': 'text
      '},