| Server IP : 85.214.239.14 / Your IP : 216.73.216.210 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/srv/modoboa/env/lib/python3.5/site-packages/modoboa_stats/ |
Upload File : |
# coding: utf-8
"""
Graphical statistics about emails traffic using RRDtool.
This module provides support to retrieve statistics from postfix log :
sent, received, bounced, rejected
"""
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy
from modoboa.core.extensions import ModoExtension, exts_pool
from modoboa.parameters import tools as param_tools
from . import __version__
from . import forms
class Stats(ModoExtension):
name = "modoboa_stats"
label = "Statistics"
version = __version__
description = ugettext_lazy(
"Graphical statistics about emails traffic using RRDtool"
)
needs_media = True
url = "stats"
topredirection_url = reverse_lazy("modoboa_stats:index")
def load(self):
param_tools.registry.add(
"global", forms.ParametersForm,
ugettext_lazy("Graphical statistics"))
exts_pool.register_extension(Stats)