| 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/3/cwd/srv/modoboa/env/lib/python3.5/site-packages/modoboa_pdfcredentials/ |
Upload File : |
"""Generate PDF documents containg account credentials."""
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 PdfCredentials(ModoExtension):
"""Extension declaration."""
name = "modoboa_pdfcredentials"
label = ugettext_lazy("PDF credentials")
version = __version__
description = ugettext_lazy(
"Generate PDF documents containing users' credentials"
)
def load(self):
param_tools.registry.add(
"global", forms.ParametersForm, ugettext_lazy("PDF credentials"))
exts_pool.register_extension(PdfCredentials)