def _signalToContextDict(self, signal, notification=None): """ Parse the event data out from the signal """ # use zopeurl in the zenactiond.conf file if it is defined else use the value from DMD zopeurl = self.options.get('zopeurl') if zopeurl == Utils.getDefaultZopeUrl() and hasattr(self, "zenossHostname"): zopeurl = self.zenossHostname data = _signalToContextDict(signal, zopeurl, notification, self.guidManager) return data
def _getBaseUrl(zopeurl): if not zopeurl: zopeurl = Utils.getDefaultZopeUrl() return '%s/zport/dmd' % zopeurl
def _getBaseUrl(zopeurl): if not zopeurl: zopeurl = Utils.getDefaultZopeUrl() return zopeurl + getUtility(IVirtualRoot).ensure_virtual_root('/zport/dmd')