Commit Graph
38 Commits
Author SHA1 Message Date
Spitap a38ade3723 Updated translations 2023-04-20 11:31:32 +02:00
Ossi Mantylahti 056942c82f [IMP] Rest of Finnish translations
Rest of Finnish language translations.
2023-02-17 22:12:49 +02:00
Spitap 8c0fb3d4ff Better throttle, attempt to have proper UX 2023-02-07 12:47:58 +01:00
Spitap cbfac68b97 Make throttling more strict 2023-01-27 22:03:09 +01:00
Spitap bde07163b0 Fixed default throttle class 2023-01-27 17:41:32 +01:00
Spitap 0d2f3d05a3 Added throttling to v2 api routes 2023-01-27 16:27:52 +01:00
Antoine Nguyen e87c3ad0b2 Better fix to avoid issue with MySQL. 2022-10-12 11:47:33 +02:00
Antoine Nguyen bf3798bfc1 Added missing migrations. 2022-09-30 17:54:41 +02:00
Antoine Nguyen 4ef53a8cd7 Django 3.2 support 2022-04-20 11:39:43 +02:00
Antoine Nguyen e5c669eff8 Added unit test 2022-03-25 10:46:54 +01:00
Antoine Nguyen 15d9afc4a5 WIP: relaydomain CRUD in new admin 2022-03-25 09:19:05 +01:00
Antoine Nguyen 23b38c8c91 Updated polish translation. 2021-08-20 14:01:20 +02:00
Antoine Nguyen 9a3ce1b76d Updated translations. 2020-05-06 13:23:37 +02:00
Antoine Nguyen ec0f276b3f Updated translations files. 2020-03-20 13:19:44 +01:00
Jérôme Lebleu 369d05e1c3 Remove the UTF-8 coding header 2020-01-07 10:16:54 +01:00
Jérôme Lebleu 74d66c00a0 Update imports for Python 3.4+ 2020-01-07 10:16:54 +01:00
Antoine Nguyen 032b370a68 Updated locales. 2019-06-07 11:00:22 +02:00
Antoine Nguyen 38408db0b3 Updated Italian translation. 2018-11-16 13:40:20 +01:00
Antoine Nguyen 04463d4c40 Updated de translation. 2018-10-16 15:02:37 +02:00
Anthony Bourguignon 9bb466143c update translation files 2018-10-05 16:20:01 +02:00
Antoine Nguyen 2e35f26468 i18n: updated pt_BR translation. 2018-10-01 09:49:22 +02:00
Antoine Nguyen 493972484e transport: avoid index issues with MySQL/MariaDB.
See https://github.com/modoboa/modoboa-postfix-autoreply/issues/19
2018-09-28 15:20:55 +02:00
Antoine Nguyen 48a7586fdf fixed: a transport may not have a backend (ex: autoreply). 2018-09-28 14:45:37 +02:00
Antoine Nguyen 287741c417 Updated translations. 2018-08-21 16:37:05 +02:00
Antoine Nguyen c76c61d449 Added romanian and chinese translations. 2018-07-12 14:42:55 +02:00
Antoine Nguyen ad91695d17 Better fix for #1450 2018-04-05 14:43:39 +02:00
Andrew Fyfe f71414ddfa add missing utf8 header
use `# -*- coding: utf-8 -*-` which is more widely supported by editors
2018-02-03 00:59:08 +00:00
Andrew Fyfe 3159eca296 import unicode_literals
and remove it from empty __init__.py files
2018-02-03 00:59:07 +00:00
Andrew Fyfe eaec271e02 pep8 fixes
- B007 Loop control variable not used within the loop body. If this is intended, start the name with an underscore.
    * modoboa/admin/lib.py
    * modoboa/admin/templatetags/admin_tags.py
    * modoboa/admin/tests/test_account.py
    * modoboa/admin/views/domain.py
    * modoboa/admin/views/identity.py
    * modoboa/core/views/dashboard.py
    * modoboa/limits/forms.py
    * modoboa/limits/handlers.py
    * modoboa/limits/tests/test_api.py
    * modoboa/limits/tests/test_domain_limits.py
    * modoboa/limits/tests/test_import.py
    * modoboa/limits/tests/test_user_limits.py
    * modoboa/limits/utils.py
    * modoboa/parameters/tools.py
    * modoboa/relaydomains/tests.py
- C402 Unnecessary generator - rewrite as a dict comprehension.
    * modoboa/admin/models/domain.py
    * modoboa/admin/views/domain.py
    * modoboa/admin/views/identity.py
    * modoboa/limits/searializers.py
- C407 Unnecessary list comprehension - can take a generator.
    * modoboa/core/password_validation.py
    * modoboa/parameters/tools.py
    * modoboa/transport/backends.py
- C408 Unnecessary dict call - rewrite as a literal.
    * modoboa/admin/tests/test_account.py
    * modoboa/admin/tests/test_alias.py
    * modoboa/admin/tests/test_password_schemes.py
    * modoboa/admin/views/domain.py
    * modoboa/admin/views/identity.py
    * modoboa/core/extensions.py
    * modoboa/lib/middleware.py
    * modoboa/lib/templatetags/form_tags.py
    * modoboa/lib/templatetags/lib_tags.py
    * modoboa/lib/web_utils.py
    * modoboa/limits/handlers.py
    * modoboa/limits/tests/test_user_limits.py
- E741 ambiguous variable name
    * modoboa/core/management/commands/cleanlogs.py
    * modoboa/limits/forms.py
    * modoboa/limits/tests/test_user_limits.py
    * modoboa/limits/utils.py
    * modoboa/relaydomains/tests.py
- F401 imported but unused
    * doc/conf.py
    * modoboa/admin/views/domain.py
    * modoboa/core/app_settings.py
    * modoboa/core/management/commands/load_initial_data.py
- F821 undefined name 'raw_input'
    * modoboa/core/commands/deploy.py
- F841 local variable 'test' is assigned to but never used
    * modoboa/core/app_settings.py
- N802 function name 'setUpTestData' should be lowercase xxx
    * modoboa/lib/email_utils.py - __ for name mangeling, _ for internal
- N805 first argument of a method should be named 'self'
    * modoboa/lib/connections.py
    * modoboa/lib/singleton.py

Ignore the following
- A001 "copyright" is a python builtin and is being shadowed, consider renaming the variable
    * doc/conf.py
- A003 is a python builtin, consider renaming the class attribute
    * modoboa/admin/factories.py
    * modoboa/admin/forms/domain.py
    * modoboa/admin/management/commands/handle_mailbox_operations.py
    * modoboa/admin/management/commands/modo.py
    * modoboa/admin/management/commands/subcommands/_repair.py
    * modoboa/admin/models/domain.py
    * modoboa/admin/models/mailbox.py
    * modoboa/core/commands/__init__.py
    * modoboa/core/commands/deploy.py
    * modoboa/core/commands/help.py
    * modoboa/core/management/commands/clean_inactive_accounts.py
    * modoboa/core/management/commands/cleanlogs.py
    * modoboa/core/management/commands/communicate_with_public_api.py
    * modoboa/core/management/commands/generate_postfix_maps.py
    * modoboa/core/management/commands/load_initial_data.py
    * modoboa/core/management/commands/set_default_site.py
- F401 imported but unused
    * modoboa/admin/apps.py - used to load handlers
    * modoboa/core/password_hashers/__init__.py - dynamically loaded
    * modoboa/limits/apps.py - used to load handlers
    * modoboa/relaydomains/apps.py - used to load handlers
    * modoboa/transport/apps.py - used to load handlers
- N802 function name should be lowercase xxx
    * modoboa/admin/tests/test_account.py
    * modoboa/admin/tests/test_alias.py
    * modoboa/admin/tests/test_domain_alias.py
    * modoboa/admin/tests/test_export.py
    * modoboa/admin/tests/test_mailbox_operations.py
    * modoboa/admin/tests/test_password_schemas.py
    * modoboa/admin/tests/test_repair.py
    * modoboa/core/tests/test_authentication.py
    * modoboa/core/tests/test_core.py
    * modoboa/core/tests/test_ldap.py
    * modoboa/core/tests/test_views.py
    * modoboa/lib/imap_utf7.py
    * modoboa/limits/tests/test_api.py
    * modoboa/limits/tests/test_domain_limits.py
    * modoboa/limits/tests/test_import.py
    * modoboa/limits/tests/test_user_limits.py
    * modoboa/relaydomains/tests.py

other fixes:
- use isinstance() instead of type() == Class
2018-02-03 00:44:00 +00:00
Andrew Fyfe 24a7ca6a9e sort imports using isort
pip install isort
isort -y
2018-02-03 00:43:59 +00:00
Andrew Fyfe 8a1d5736c9 fix quotes
This ensures all files use " for quotes with the exception of
migrations, as this are auto generated I've not modified them.

pip install unify
unify --in-place --recursive --quote \" .
2018-02-03 00:43:58 +00:00
Antoine Nguyen cfb228f1f7 Updated translations. 2018-01-25 09:32:22 +01:00
Antoine Nguyen 47154039e0 transport: updated SQL queries. 2017-12-21 11:32:53 +01:00
Antoine NguyenandGitHub 36a434f346 Reintroduced relay domain concept. (#1334)
* Reintroduced relay domain concept.

* Removed wrong url include.

* Removed deprecated tests.

* Updated requirement.
2017-12-21 11:15:02 +01:00
Andrew Fyfe 4fe51d6726 random code clean ups
- removed duplicate imports
- whitespace fixes
- removed unnecessary u"" prefixes
- added missing r"" prefixes where required
- added missing default values to DynamicForm() to prevent possible unassigned variable access
2017-12-19 01:24:01 +00:00
Andrew Fyfe 892160d5aa updates for django 1.11 support
- MIDDLEWARE_CLASSES is replaced by MIDDLEWARE

- add MiddlewareMixin to modoboa middlewares

- on_delete will become a required parameter for ForeignKey()
  set it to the current default CASCADE

- on_delete will become a required parameter for OneToOneField()
  set it to the current default CASCADE

- reverse and reverse_lazy have moved to django.urls

- RadioChoiceInput widget has been removed, replace with HorizontalRadioSelect
2017-12-19 00:50:53 +00:00
Antoine NguyenandGitHub eba9cba00e Added polish translation. (#1319)
see #1318
2017-12-07 10:11:30 +01:00
Antoine NguyenandGitHub 98eea782a0 Generic transport editor. (#1309)
Generic transport editor.

see #1301

* Fixed unit test.

* Added unit tests.

* Fixed unit test.

* Added transport module to test list.

* Moved relay transport backend to appropriate app.

see #1301

* Added missing file.
2017-11-27 10:42:27 +01:00