summaryrefslogtreecommitdiff
path: root/src/mailman/app
Commit message (Collapse)AuthorAgeFilesLines
...
* Bump copyright years.Barry Warsaw2015-01-0422-22/+22
|
* * ``$cwd`` is now an additional substitution variable for the ``mailman.cfg``Barry Warsaw2015-01-031-2/+6
| | | | | | | | | | | | | file's ``[paths.*]`` sections. A new ``[paths.here]`` section is added, which puts the ``var_dir`` in ``$cwd``. It is made the default layout. * You can now view the contents of, inject messages into, and delete messages from the various queue directories via the ``<api>/queues`` resource. Also: inject_message() and inject_text() now return the filebase of the file injected into the queue directory.
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-2222-105/+25
|
* Trunk merge.Barry Warsaw2014-12-222-4/+6
|\
| * * Fixed getting non-ASCII filenames from RFC 2231 i18n'd messages. Given byBarry Warsaw2014-12-082-4/+7
| |\ | | | | | | | | | Aurélien Bompard. (LP: #1060951)
| | * Convert unicode instance testing to bytes instance testingAurélien Bompard2014-12-042-3/+3
| | |
| | * Do not auto-convert Message headers to unicodeAurélien Bompard2014-12-022-3/+6
| |/ | | | | | | Fixes: bug #1060951
* | Refactor subject-prefix handler out of cook-headers handler and make all testsBarry Warsaw2014-12-211-4/+4
| | | | | | | | pass.
* | One more test fixed.Barry Warsaw2014-12-181-2/+2
| |
* | Fix test_bounces.Barry Warsaw2014-12-171-1/+1
| |
* | Fix test_bounces.Barry Warsaw2014-12-171-2/+2
| |
* | app/docs and app.tests all pass now.Barry Warsaw2014-12-154-8/+13
| |
* | More test repair.Barry Warsaw2014-12-152-3/+3
| |
* | Core tests pass.Barry Warsaw2014-12-151-4/+4
| |
* | All the REST tests pass.Barry Warsaw2014-12-151-1/+1
| |
* | Fix pipelines tests.Barry Warsaw2014-12-151-4/+4
| |
* | Use listid instead of (fqdn) listname in the metadata pickle.Barry Warsaw2014-12-152-2/+2
| | | | | | | | | | | | load_external() now always opens in utf-8 mode. More test repair.
* | Port some of the commands.Barry Warsaw2014-12-131-1/+3
| |
* | CheckpointingBarry Warsaw2014-12-122-2/+2
| |
* | Fix test_inject.pyBarry Warsaw2014-12-111-1/+1
| |
* | registrar.rst is ported; some bad path tests moved to a unittest.Barry Warsaw2014-12-011-2/+2
| |
* | Port model/tests/test_user.pyBarry Warsaw2014-12-011-1/+1
| |
* | Checkpointing.Barry Warsaw2014-11-304-35/+34
|/ | | | | | | | | | By using `six` I think I have most of the imports squared away. There's probably still uses of `unicode` built-ins that need fixing. The idea is to first get the test suite running (which it doesn't yet), and then to fix tests. There's a bug in lazr.config which requires us to patch it for now.
* * You no longer have to edit `src/mailman/testing/testing.cfg` to run theBarry Warsaw2014-11-091-3/+6
| | | | | | | | | | | test suite against PostgreSQL. See `src/mailman/docs/START.rst` for details. Also: * Test fixes. * Doc fixes. * PostgreSQL/model fixes.
* tox-ify the test suite. First, this makes it easier to run since you don'tBarry Warsaw2014-11-081-10/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have to manually set up the virtualenv. Second, it allows us to later create a python3 environment for porting purposes. Other change: * The `mailman conf` command no longer takes the `-t/--sort` option; the output is always sorted. * The ``[database]migrations_path`` setting is removed. * You no longer have to create a virtual environment separately when running the test suite. Just use `tox`. * The RFC 2369 headers added to outgoing messages are now added in sorted order. * The JSON representation `http_etag` key uses an algorithm that is insensitive to Python's dictionary sort order.
| * Tox-ify the test suite. Now you don't have to create a virtualenv separately.Barry Warsaw2014-11-071-3/+3
|/ | | | | | | | | | | To do this, we have to handle random test ordering, since tox explicitly sets PYTHONHASHSEED. That's a good thing for the future Python 3 port. Removed `mailman conf -t/--sort`; now the output is always sorted. RFC 2369 headers are now sorted before being added. etag repr dicts are sorted using pprint.pformat().
* Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-43/+34
|
* Clean up pass.Barry Warsaw2014-09-221-4/+3
|
* * fix the circular dependecy problem between User and AdressAbhilash Raj2014-09-191-1/+1
| | | | * fix almost all the errors relating to doctests
* fix all tests in mailman.model.testsAbhilash Raj2014-09-131-6/+5
|
* * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-061-1/+1
| | | | * update some queries to match SA style
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-2815-73/+73
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* Remove a few redundant checks.Barry Warsaw2014-04-152-8/+0
|
* Trunk mergeBarry Warsaw2014-04-1422-128/+324
|\
| * * Module coding style consistency.Barry Warsaw2014-03-022-15/+34
| | | | | | | | | | | | | | * handle_SubscriptionEvent(): We're always guaranteed to get a language from a member, since lookup falls back ultimately to the system preferences. So this method can be simplified. * Bump up code coverage for several modules.
| * - Clean up and simplify remove_list()Barry Warsaw2014-03-022-21/+20
| | | | | | | | - Boost test coverage of lifecycle.py to 100%
| * Several internal improvements:Barry Warsaw2014-01-069-76/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New events: - ConfirmationNeededEvent is triggered when a pendable requiring confirmation is created. This allows us to define an event handler for this event which sends the user notification. - SubscriptionEvent is triggered when a member is added to a mailing list. This lets us define an event handler which sends the welcome message. * send_welcome_message() now takes a member parameter instead of an address, which lets us directly access the member's delivery mode and user display name (if the member has a user, which it might not in some cases). * Use the list id in the pendable record instead of the list name for robustness (the latter can change but the former is permanent). * Test more registration conditions. * In the bin/runner command line switch handling, default `verbose` to None instead of False. This makes it work better with nose's -E switch (log to stderr). * In call_api(), if a POST, PUT, or PATCH method is used and data is None, encode the empty dictionary; seems like the behavior of urlencode() has changed, so this is safer. * Fix style and pyflakes warnings.
| * Bump copyright years.Barry Warsaw2014-01-0121-21/+21
| |
* | Aurélien Bompard's import-from-2.1 branch, with cleanup and fixes.Barry Warsaw2014-04-142-1/+12
|\ \ | |/ |/|
| * Text templates should be in UTF-8Aurélien Bompard2013-10-212-1/+12
| |
* | typoBarry Warsaw2013-10-241-1/+1
|/
* * Use the ``enum34`` package instead of ``flufl.enum``.Barry Warsaw2013-08-272-2/+2
|\
| * Switch to PEP 435 enums from flufl.enums.Barry Warsaw2013-06-182-2/+2
| |
* | * Re-name doctests.Barry Warsaw2013-08-251-1/+2
|/ | | | | * Fix executable location now that we're not using buildout. * Fix enum repr.
* Bump copyright years.Barry Warsaw2013-01-0121-21/+21
|
* LP: #975692 phase 1Barry Warsaw2012-12-286-176/+88
| | | | | | | | | | | | | | | | | * Rework list style management. No more style priorities or matching.. Now, you name a style explicitly to apply and that's it. * create_list() now takes a `style` argument. * config file now names both a default style to use, and a set of paths to scan for IStyle instances. (This could be a model for other plugins.) * added IMailingList.style_name to record the last style applied, but this is going to be removed in subsequent revisions. Also: * Move find_components() and scan_module() from app/finder.py to utilities/modules.py * Cleaned up lifecycle.rst for better documentation. Some tests moved to test_lifecycle.py. * Remove some unnecessary test tearDown() code.
* * Fill out the documentation on moderation notifications.Barry Warsaw2012-12-172-105/+188
| | | | * Fix LP: 1091321; typo in send_goodbye_message().
* Fix cross-references.Barry Warsaw2012-12-171-2/+2
|
* * Simplify moderator.rst and requests.rst so they serve a better purpose asBarry Warsaw2012-12-173-7/+499
| | | | | | | | | | documentation. Move non-documentation tests into a separate unittest file. * Separate out the doctests for IRequest from the doctests for app/moderator.py and place the latter in a separate file. * Fix typo in app/membership.py (s/send_goodbye_msg/send_goodbye_message), but LP: #1091321 tracks more needed fixes in this area.
* Expose held subscription/unsubscription requests via the API.Barry Warsaw2012-12-151-3/+2
| | | | | | * hold_subscription(): Don't str(mode) to get a string representation, just mode.name since we know it is a DeliveryMode. This means we don't need to split the value later in handle_subscription().