summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fix NEWS entry.Barry Warsaw2012-07-021-2/+2
| | |
* | | * `passlib`_ is now used for all password hashing instead of flufl.password.Barry Warsaw2012-07-0232-148/+436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default hash is `sha512_crypt`. * Events renamed and moved: * `mailman.chains.accept.AcceptNotification` * `mailman.chains.base.ChainNotification` * `mailman.chains.discard.DiscardNotification` * `mailman.chains.hold.HoldNotification` * `mailman.chains.owner.OwnerNotification` * `mailman.chains.reject.RejectNotification` changed to (respectively): * `mailman.interfaces.chains.AcceptEvent` * `mailman.interfaces.chains.ChainEvent` * `mailman.interfaces.chains.DiscardEvent` * `mailman.interfaces.chains.HoldEvent` * `mailman.interfaces.chains.AcceptOwnerEvent` * `mailman.interfaces.chains.RejectEvent` * A `ConfigurationUpdatedEvent` is triggered when the system-wide global configuration stack is pushed or popped. * With the switch to `passlib`_, `[passwords]password_scheme` has been removed. Instead use `[passwords]path` to specify where to find the `passlib.cfg` file. See the comments in `schema.cfg` for details.
* | | Replace flufl.password with passlib, albeit with a wrapper.Barry Warsaw2012-06-2713-38/+88
| | |
| * | trunk mergeBarry Warsaw2012-06-03131-1008/+1039
| |\ \ | |/ / |/| |
* | | trunk mergeBarry Warsaw2012-05-144-2/+114
|\ \ \
| * | | Add a test to ensure that the re-raising of the exception occurs.Barry Warsaw2012-05-111-3/+7
| | | |
| * | | * When a queue runner gets an exception in its _dispose() method, aBarry Warsaw2012-05-114-2/+110
| | | | | | | | | | | | | | | | | | | | | | | | `RunnerCrashEvent` is triggered, which contains references to the queue runner, mailing list, message, metadata, and exception. Interested parties can subscribe to that `zope.event` for notification.
* | | | False rather than 0Barry Warsaw2012-05-091-1/+1
|/ / /
* | | * List-Post should be NO when posting is not allowed. (LP: #987563)Barry Warsaw2012-04-273-4/+34
| | |
* | | General code cleanup.Barry Warsaw2012-04-25108-464/+430
| | | | | | | | | | | | | | | | | | | | | | | | - Add explicit dependency on zope.event in setup.py. - Use Python 3 compatible syntax for specifying that a class implements an interface, i.e. the @implementer class decorator. - print_function futures. - Whitespace normalization.
* | | - Remove an obsolete script.Barry Warsaw2012-04-222-191/+3
| | | | | | | | | | | | - Fix up one more use of config.db global.
* | | - Modernize the module by using future imports. Some byte literals areBarry Warsaw2012-04-221-8/+19
| | | | | | | | | | | | required due to the SMTP protocol.
* | | - Print functionBarry Warsaw2012-04-221-8/+8
| | | | | | | | | | | | - transaction() context manager.
* | | - Convert the CLI modules to use print_function.Barry Warsaw2012-04-223-22/+21
| | | | | | | | | | | | | | | - Use the @transactional decorator. - Use the transaction context manager.
* | | - Module modernatizations (print function).Barry Warsaw2012-04-2215-187/+245
| | | | | | | | | | | | - Convert direct use of config.db global to use the @dbconnection decorator.
* | | Two more module modernizations and transaction context manager uses.Barry Warsaw2012-04-222-8/+9
| | |
* | | - Module modernization by adding the print_function() import.Barry Warsaw2012-04-228-76/+86
| | | | | | | | | | | | - Update many tests to use the transaction() context manager.
* | | - Modernize the helpers.py module by using print() functions.Barry Warsaw2012-04-221-16/+18
| | | | | | | | | | | | | | | - Rewrite soem of the code to use the new transaction context manager, instead of explicitly accessing the config.db global.
* | | - Modernize the layers.py module by using print().Barry Warsaw2012-04-221-6/+7
| | | | | | | | | | | | | | | - Rewrite a small bit of code to use the transaction context manager instead of accessing config.db directly.
* | | Update the IDatabase interface.Barry Warsaw2012-04-221-2/+5
| | |
* | | - Simplify the transactional() decorator.Barry Warsaw2012-04-221-13/+39
| | | | | | | | | | | | | | | - Add transaction() context manager. - Add dbconnection() decorator.
* | | Rename mailman.database.transaction.txn to ...transactional. Modernize theBarry Warsaw2012-04-203-14/+9
| |/ |/| | | | | module, and use it in another convenient place.
| * Separate out the migration test methods so that the ones testing that theBarry Warsaw2012-04-206-34/+45
| | | | | | | | | | | | | | | | columns got renamed don't in fact check the data in those tables. Better separation of concerns. Rename mailman.database.transaction.txn to ...transactional and use it in a couple of additional spots.
| * newsgroup_moderationBarry Warsaw2012-04-082-1/+8
| |
| * - Rename the model attributes.Barry Warsaw2012-04-0812-49/+54
| | | | | | | | - news_moderation -> newsgroup_moderation
| * - Refactor the way databases are schema-migrated so that load_migrations()Barry Warsaw2012-04-0811-27/+537
|/ | | | | | | | | | | | | | | can be tested separately. - Add an `until` argument to load_migrations() so that we can load only up to a given timestamp. - In load_migrations(), ignore files in which the `version` part of the file name is empty. - In migrations.rst, use the new, better way of ensuring post-test cleanup. - Add tests for partial upgrades. - LP: #971013 - schema migrations for beta 2. - LP: #967238 - IMailingList.archive + IMailingList.archive_private -> IMailingList.archive_policy, and add ArchivePolicy enum. - Move the `chdir` context manager to helpers.py and add `temporary_db` context manager.
* * A `PasswordChangeEvent` is triggered when an `IUser`'s password changes.Barry Warsaw2012-04-075-3/+49
| | | | (LP: #975700)
* * An `AddressVerificationEvent` is triggered when an `IAddress` is verifiedBarry Warsaw2012-04-074-5/+57
| | | | or unverified. (LP: #975698)
* Remove redundant, obsolete test data. This stuff all lives in flufl.bounceBarry Warsaw2012-04-0687-10367/+0
| | | | now.
* Add missing bug reference.Barry Warsaw2012-04-061-1/+1
|
* Merge branch from Andrea Crotti, with a minor cleanup:Barry Warsaw2012-04-061-2/+1
|\ | | | | | | | | - There is a tiny change from the version already merged, because now sys.ps1 is set correctly even if readline/rlcompleter fail..
| * the sys prompt can be safely set also when the readline import failsAndrea Crotti2012-03-141-2/+2
| |
* | Whitespace normalization.Barry Warsaw2012-04-061-2/+0
| |
* | * Header check specifications in the `mailman.cfg` file have changed quiteBarry Warsaw2012-04-0611-193/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bit. The previous `[spam.header.foo]` sections have been removed. Instead, there's a new `[antispam]` section that contains a `header_checks` variable. This variable takes multiple lines of `Header: regexp` values, one per line. There is also a new `jump_chain` variable which names the chain to jump to should any of the header checks (including the list-specific, and programmatically added ones) match. * Fixed a typo when returning the configuration file's header match checks. (LP: #953497) Also: - Remove an unused method. - Improve test coverage for mailman/app/bounces.py - 100% test coverage for mailman/chains/headers.py - Various other minor code cleanup. - Fixed the 'any' rule, which was checking a bogus metadata dictionary key.
* | * A mailing list's *moderator password* is no longer stored in the clear; itBarry Warsaw2012-04-045-221/+449
| | | | | | | | | | | | | | | | | | | | | | is hashed with the currently selected scheme. Also: - Simplify and rewrite the approved.rst doctest. Now just document the good path, and only describe its functionality using the Approved: header, which is the recommended header. - Greatly expand the unittests for the approved rule.
* | * Fixed a UnicodeError with non-ascii message bodies in the `approved` rule,Barry Warsaw2012-04-045-1/+71
|\ \ | | | | | | | | | | | | | | | given by Mark Sapiro. (LP: #949924) (with some minor stylistic fixes by Barry)
| * | * Added a unit test for rules/approved.pyMark Sapiro2012-03-184-0/+76
| | | | | | | | | | | | * Renamed rules/docs/approve.py to approved.py for consistency.
| * | Merged from trunk.Mark Sapiro2012-03-1851-4059/+726
| |\ \
| * | | Fixed a unicode decode error on messages with non-ascii text/plain parts.Mark Sapiro2012-03-151-1/+3
| | | |
* | | | - Improve the NNTP doctest.Barry Warsaw2012-04-023-120/+47
| | | | | | | | | | | | | | | | | | | | - Add a `cleanups` global to doctests. This can be used to register functions which will get called automatically at doctest tearDown time.
* | | | The port of NNTPRunner to Mailman 3 is complete.Barry Warsaw2012-04-014-34/+197
| | | | | | | | | | | | | | | | | | | | | | | | * Configuration schema variable changes: [nntp]username -> [nntp]user [nntp]port (added)
* | | | - More tests of mailman.runners.nntp.prepare_message(), this time of theBarry Warsaw2012-04-014-42/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | header removal and de-duplication algorithms. - Improve the robustness of the de-duplication code. - Add a very nice helper called `configuration` which can be used either as a decorator or context manager to temporarily set values in a configuration section. No more need to manage pushes/pops. More code needs to be converted to use this style.
* | | | More tests, though still not 100% coverage.Barry Warsaw2012-03-313-21/+56
| | | |
* | | | * The `news` runner and queue has been renamed to the more accurate `nntp`.Barry Warsaw2012-03-3113-63/+201
| | | | | | | | | | | | | | | | Beta testers can can safely remove `$var_dir/queue/news`.
* | | | Fix a few typos, and the creation of index.html symlink to make PyPI happy.Barry Warsaw2012-03-282-5/+5
| | | |
* | | | * Some additional documentation on related components such as Postorius andBarry Warsaw2012-03-284-20/+303
|\ \ \ \ | | | | | | | | | | | | | | | hyperkitty have been added, given by Stephen J Turnbull.
| * | | | Update documentation post-sprint for Beta releases.Stephen J. Turnbull2012-03-263-18/+298
| | | | |
* | | | | Remove a few more obsolete scripts.Barry Warsaw2012-03-284-749/+0
| | | | |
* | | | | Remove another obsolete script.Barry Warsaw2012-03-282-151/+1
| | | | |
* | | | | Remove obsolete script.Barry Warsaw2012-03-261-660/+0
| | | | |