def __init__(self): BaseStatisticsImplementation.__init__(self) self._implementationPackage = indico.ext.statistics.piwik self._APISegmentation = [] self._setHasJSHook(True) self._setHasDownloadListener(True) self.setAPIToken(self._getSavedAPIToken()) self.setAPISiteID(self._getSavedAPISiteID())
def __init__(self): BaseStatisticsImplementation.__init__(self) self._implementationPackage = indico.ext.statistics.piwik self._APISegmentation = [] self._setHasJSHook(True) self._setHasDownloadListener(True) self.setAPIToken(self._getSavedAPIToken()) self.setAPISiteID(self._getSavedAPISiteID())
def hasDownloadListener(self): """ Overridden method, see self.hasJSHook for explaination of logic. """ enabled = PiwikStatisticsImplementation.getVarFromPluginStorage('downloadTrackingEnabled') return BaseStatisticsImplementation.hasDownloadListener(self) if enabled else False
def hasDownloadListener(self): """ Overridden method, see self.hasJSHook for explaination of logic. """ enabled = PiwikStatisticsImplementation.getVarFromPluginStorage('downloadTrackingEnabled') return BaseStatisticsImplementation.hasDownloadListener(self) if enabled else False
def hasJSHook(self): """ This implementation permits the JSHook & Download listener to be enabled/disabled separately, checks for this option first then falls back to default plugin activity if not disabled locally. By doing this, the components are not appended to the list of subsribers when listeners are iterating. """ enabled = PiwikStatisticsImplementation.getVarFromPluginStorage('jsHookEnabled') return BaseStatisticsImplementation.hasJSHook(self) if enabled else False
def hasJSHook(self): """ This implementation permits the JSHook & Download listener to be enabled/disabled separately, checks for this option first then falls back to default plugin activity if not disabled locally. By doing this, the components are not appended to the list of subsribers when listeners are iterating. """ enabled = PiwikStatisticsImplementation.getVarFromPluginStorage('jsHookEnabled') return BaseStatisticsImplementation.hasJSHook(self) if enabled else False
def __init__(self): BaseStatisticsImplementation.__init__(self) self._implementationPackage = indico.ext.statistics.piwik self.setAPIToken(self._getSavedAPIToken()) self.setAPISiteID(self._getSavedAPISiteID())