Exemple #1
0
    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())
Exemple #2
0
    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())
Exemple #3
0
    def hasDownloadListener(self):
        """
        Overridden method, see self.hasJSHook for explaination of logic.
        """
        enabled = PiwikStatisticsImplementation.getVarFromPluginStorage('downloadTrackingEnabled')

        return BaseStatisticsImplementation.hasDownloadListener(self) if enabled else False
Exemple #4
0
    def hasDownloadListener(self):
        """
        Overridden method, see self.hasJSHook for explaination of logic.
        """
        enabled = PiwikStatisticsImplementation.getVarFromPluginStorage('downloadTrackingEnabled')

        return BaseStatisticsImplementation.hasDownloadListener(self) if enabled else False
Exemple #5
0
    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
Exemple #6
0
    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())