| 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_contacts/ |
Upload File : |
"""Declare and register the contacts extension."""
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 Contacts(ModoExtension):
"""Plugin declaration."""
name = "modoboa_contacts"
label = ugettext_lazy("Contacts")
version = __version__
description = ugettext_lazy("Address book")
url = "contacts"
topredirection_url = reverse_lazy("modoboa_contacts:index")
def load(self):
param_tools.registry.add(
"user", forms.UserSettings, ugettext_lazy("Contacts"))
exts_pool.register_extension(Contacts)