Commit Graph
3153 Commits
Author SHA1 Message Date
Antoine NguyenandGitHub 229260968d Merge pull request #1456 from wUFr/patch-1
Removed commas from list of packages; tables separated
2018-04-08 10:20:05 +02:00
Jiří BělskýandGitHub b98c00dafb Removed commas from list of packages; tables separated
I can't simply copy-paste it into terminal with commas in list of packages, i cuz (at least) YUM will try to install package `gcc,` instead of `gcc`. Tables also put in their own lines, otheweise i had to scroll horizontally on your website here: http://modoboa.readthedocs.io/en/latest/manual_installation/modoboa.html
2018-04-07 19:40:41 +02:00
Antoine NguyenandGitHub 075096ce7e Merge pull request #1451 from modoboa/fix/unit_test_import_non_utf8
Added unit test to cover import of non utf8 files.
2018-04-06 12:08:00 +02:00
Antoine Nguyen 31ed016c58 Added unit test to cover import of non utf8 files. 2018-04-06 11:36:14 +02:00
Antoine NguyenandGitHub 6eb0052534 Merge pull request #1432 from fyfe/fix/1430
fix import command
2018-04-06 11:27:36 +02:00
Antoine NguyenandGitHub 26fad9b0b7 Merge branch 'master' into fix/1430 2018-04-06 10:51:20 +02:00
Antoine NguyenandGitHub 90b85552b7 Merge pull request #1447 from fyfe/fix/test-database-encoding
ensure utf8 encoding is used when creating/accessing test database
2018-04-06 10:47:36 +02:00
Antoine Nguyen ad91695d17 Better fix for #1450 2018-04-05 14:43:39 +02:00
Antoine Nguyen 5dbb5b1ea6 Trigger domform_init event for creation too.
fix #1450
2018-04-05 14:29:39 +02:00
Andrew Fyfe 957591f977 ensure utf8 encoding is used when creating/accessing test database 2018-04-02 17:56:59 +01:00
Antoine NguyenandGitHub 425258309a Merge pull request #1446 from fyfe/fix/prefer-stdlib-mock
prefer standard library version of mock over back port
2018-04-02 16:31:04 +02:00
Antoine NguyenandGitHub 41f3c63cdc Merge pull request #1445 from fyfe/fix/1439
revert #1439 changes
2018-04-02 16:30:12 +02:00
Antoine NguyenandGitHub aa3af9d26f Merge pull request #1441 from fyfe/fix/ldap-byte-warnings
fix python-ldap warnings on Python 2
2018-04-02 16:29:05 +02:00
Andrew Fyfe 1aff9b2a98 prefer standard library version of mock over back port 2018-03-31 15:45:23 +01:00
Andrew Fyfe f64cdb1a93 temporary solution for pip 10 internals moving to pip._internal 2018-03-31 14:45:16 +01:00
Andrew Fyfe 86d758d841 revert #1439 changes
adding external dependencies to setup.py was a bad idea
2018-03-31 14:45:15 +01:00
Andrew Fyfe 846ad25323 when using LDAP use str (bytes) on PY2 and str on PY3 2018-03-26 18:31:42 +01:00
Andrew Fyfe e9c1b53bb8 when importing use chardet if utf-8 fails 2018-03-24 17:21:43 +00:00
Andrew Fyfe dab91eb149 only use backports.csv on python 2 2018-03-24 15:32:54 +00:00
Andrew Fyfe 3bd365e78c fix import command
- ensure command line args are unicode(py2)/str(py3)

- use io.open to open file with utf8 encoding

- set newlines="" in open commands, csv module takes care of line endings

- add tests for import command
2018-03-24 15:32:54 +00:00
Antoine NguyenandGitHub 587eb77476 Merge pull request #1439 from fyfe/fix/1438
remove dependency on pip internals
2018-03-22 15:50:45 +01:00
Andrew Fyfe e6966c0ecb clean up requirements.txt
argparse - remove, now part of Pythons stdlib in Python 2.7 and 3.4+
backports.csv - only required for Python 2
ipaddress - only required for Python < 3.3
2018-03-19 19:03:06 +00:00
Andrew Fyfe be5e689cac remove dependency on pip internals
closes #1438
2018-03-19 19:03:06 +00:00
Antoine Nguyen 95ccae54ca doc: Added warning about proxy_read_maps. 2018-03-09 14:12:08 +01:00
Antoine Nguyen 91a8a0544b Fixed DKIM key display format.
see #1420
2018-03-07 17:33:01 +01:00
Antoine NguyenandGitHub efb2012ce3 Merge pull request #1426 from cptMikky/patch-1
[docs] remove uwsgi warning
2018-03-07 17:25:36 +01:00
Antoine NguyenandGitHub 4d86be1787 Merge pull request #1421 from fyfe/fix/dkim-dns-record
#1420 fix DKIM bind record
2018-03-07 17:24:41 +01:00
Antoine NguyenandGitHub 187715bbbe Merge pull request #1418 from fyfe/fix/psycopg2
#1417 psycopg2 binary package has been renamed to psycopg2-binary
2018-03-07 17:21:33 +01:00
cptMikkyandGitHub cfbdeb6897 remove uwsgi warning
Current Debian stable ships with uWSGI 2.0.14 while the current upstream version to the date is only 2.0.17. The original warning no longer applies, there's no need to scare off Debian or Ubuntu users.
2018-03-06 01:00:32 +01:00
Andrew Fyfe b71eff661d #1420 fix DKIM bind record
TXT records longer than 255 characters need split into chunks

fixes #1420
2018-03-04 02:39:38 +00:00
Andrew Fyfe 6503cef3da #1417 psycopg2 binary package has been renamed to psycopg2-binary
also bump the minimum version to 2.7.4 as this is when the psycopg2-binary became available.

See #1417 and http://initd.org/psycopg/articles/2018/02/08/psycopg-274-released/
2018-03-03 14:44:46 +00:00
Antoine NguyenandGitHub f4b1047363 Merge pull request #1413 from modoboa/fix/domain_quota_list_pagination
Load next page of the right type.
2018-03-01 18:17:30 +01:00
Antoine Nguyen 88468fa08f Added unit test. 2018-03-01 17:16:27 +01:00
Antoine Nguyen 384ea598c4 Load next page of the right type.
see #1412
2018-03-01 16:05:40 +01:00
Antoine NguyenandGitHub d3d6daffa7 Merge pull request #1406 from modoboa/fix/paramters_form_error_display
Fixed error display in parameters form.
2018-02-24 19:01:17 +01:00
Antoine NguyenandGitHub 2847908afe Merge pull request #1404 from modoboa/fix/dkim_txt_record_subdomain
Fixed syntax for subdomains.
2018-02-24 15:20:17 +01:00
Antoine Nguyen b39ba2fc20 Fixed error display in parameters form.
see #1405
2018-02-24 14:45:39 +01:00
Antoine Nguyen d954704ce9 Use absolute domain names instead of relative ones.
see #1403
2018-02-24 14:27:10 +01:00
Antoine Nguyen 2c31895648 Fixed syntax for subdomains.
see #1403
2018-02-24 14:16:19 +01:00
Antoine NguyenandGitHub 5cac7ffea8 Merge pull request #1392 from pruje/master
Add authentication log information in documentation
2018-02-24 14:04:11 +01:00
Antoine Nguyen 728b6050c2 New signal triggered when DKIM keys are generated. 2018-02-24 10:00:23 +01:00
Jean Prunneaux 499c353874 Fix english errors in documentation 2018-02-21 21:39:43 +01:00
Jean Prunneaux 8288412d3d Add authentication log information in documentation 2018-02-12 23:58:52 +01:00
Antoine NguyenandGitHub 83d0564c27 Merge pull request #1388 from fyfe/fix/spring-clean
spring clean
2018-02-09 14:37:07 +01:00
Andrew Fyfe 8e2f29f409 fix whitespace in setup.cfg 2018-02-03 01:09:28 +00:00
Andrew Fyfe 1adfba38d8 use /bin/sh instead of /bin/bash
there's no guarantee that bash exists in /bin
2018-02-03 00:59:08 +00: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 87e8a32063 whitespace fixes 2018-02-03 00:59:06 +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