Commit Graph
48 Commits
Author SHA1 Message Date
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 ff2c019fc6 Few fixes. 2018-01-19 09:56:24 +01:00
Antoine Nguyen 213a363716 Per domain DKIM key generation.
see #1325
2018-01-12 17:42:04 +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
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
Anthony BourguignonandAntoine Nguyen 9349b7a90a Quota (#1262)
* Add domain quota listing
See #1135

* Add permission on domains quotas listing

* Always send context headers
even if domains or identities are empty

* rename identities quotas view in the tests

* Added unit test for domain quota list
2017-10-06 17:11:55 +02:00
Antoine NguyenandGitHub 226d65c0a0 Check MX validity when adding new domain. (#1215)
* Check MX validity when adding new domain.

see #1211

* Fixed unit test.

see #1215

* Added unit tests.

see #1211

* Fixed unit test.

see #1211

* Added missing file.

see #1211

* Fixed error definition.

see #1211
2017-08-18 09:29:01 +02:00
Floréal Cabanettes 54a8dc6aab Replace __unicode__ functions by python_2_unicode_compatible decorator 2017-07-24 14:49:42 +02:00
Floréal Cabanettes 908faba24a Python3 compatibility: add __str__ functions in addition to __unicode__ functions 2017-07-24 13:00:44 +02:00
Antoine Nguyen 188216b96e Improved domain quota display.
see #1146
2017-06-22 18:51:16 +02:00
Arthur Vuillard 6fe26028d4 tests for modoboa.admin for python 2 and 3 2017-05-11 23:22:22 +02:00
Arthur Vuillard 615f73f272 unicode_literals everywhere and modoboa-admin deploy fixes 2017-05-11 09:25:42 +02:00
Antoine Nguyen 2109feffd2 Initial python3 support. 2017-05-10 18:29:17 +02:00
Antoine Nguyen aeb834b9cf Allowed more values.
see #1087
2017-04-03 14:04:57 +02:00
Antoine Nguyen 55bdf3a82f Fixed mailbox removal.
see #1046
2017-02-27 16:17:08 +01:00
Antoine Nguyen 6ecb50deab Default mailbox quota should not be greater than quota.
see #1035
2017-02-20 16:57:38 +01:00
Antoine Nguyen 8ef3dc8e06 Added support for reseller quota.
see #1035
2017-02-16 11:28:40 +01:00
Antoine Nguyen cdd4e7e89e Increase coverage.
see #1030
2017-02-15 20:46:47 +01:00
Antoine Nguyen e8ceadaa1d Updated import.
see #1030
2017-02-15 16:36:12 +01:00
Antoine Nguyen b9342f7801 Display domain quota usage.
see #1030
2017-02-15 15:41:57 +01:00
Antoine Nguyen 496624a711 Added support for domain quota.
see #1030
2017-02-15 13:30:12 +01:00
Antoine Nguyen 4279d0cabd Renamed domain quota field to default_mailbox_quota.
see #1030
2017-02-15 10:04:13 +01:00
Antoine Nguyen ce77b66a2e Control DNS checks per domain.
WIP
2017-02-06 07:27:30 +01:00
Antoine Nguyen 0429105883 No tests for reserved domains.
fix #995

Conflicts:
	modoboa/admin/models/domain.py
2017-01-16 12:27:05 +01:00
Antoine Nguyen 3480e187a3 Do not include internal aliases in counter.
fix #1001
2017-01-16 12:25:24 +01:00
Antoine Nguyen 5480a96a73 WIP. 2016-11-23 11:31:57 +01:00
Antoine Nguyen 784acaca46 Fixed form. 2016-11-05 14:53:11 +01:00
Antoine Nguyen 3fb1c13f18 WIP
see #951
2016-10-28 15:48:08 +02:00
Antoine Nguyen 9367dcd09f WIP
see #951
2016-10-28 15:48:08 +02:00
Gael Pasgrimaud 2e1515f855 remove bool even if I like it 2016-09-19 18:06:10 +02:00
Gael Pasgrimaud e0f2f34523 take care of creation date while showing DNS status 2016-09-19 15:37:37 +02:00
Antoine Nguyen 397dda7adb Few fixes. 2016-09-16 11:23:22 +02:00
Gael Pasgrimaud d8ebfe71e6 rename valids to has_valids 2016-09-16 09:57:57 +02:00
Gael Pasgrimaud d7402c76e3 improve mx UI; move valid-mx parameters to UI too 2016-09-15 12:12:49 +02:00
Antoine Nguyen f33bd7e509 Added view to display MX records. 2016-09-14 20:42:51 +02:00
Gael Pasgrimaud 28c99abb46 introduce mx record 2016-09-13 16:24:04 +02:00
Antoine Nguyen 27dd441111 Send notifications.
see #879
2016-06-09 14:40:17 +02:00
Antoine Nguyen f2c8736d02 Increase coverage.
see #879
2016-06-08 18:37:32 +02:00
Antoine Nguyen 7f233b2f26 DNSBL checks for domains.
see #879
2016-06-08 17:08:08 +02:00
Antoine Nguyen 68cb067317 Django 1.9 compat
see #867
2016-04-29 11:44:14 +02:00
Antoine Nguyen f1863e61a6 Domain admins limit added.
see #799
2016-04-27 11:32:48 +02:00
Antoine Nguyen 49e5362f41 WIP.
see #799
2016-04-16 15:27:33 +02:00
Antoine Nguyen 173e43e270 WIP: update mailboxes.
see #831
2016-01-30 14:58:25 +01:00
Antoine Nguyen 0d5e35f41e Add support for domain/address using non-ASCII characters.
see #790
2015-11-30 19:45:19 +01:00
Antoine Nguyen ab99a05dd2 Django 1.8 compat.
see #787
2015-11-15 15:16:06 +01:00
Antoine Nguyen 11064393a6 Merge with admin, limits and relaydomains extensions.
WIP
2015-11-09 18:25:34 +01:00