summaryrefslogtreecommitdiff
path: root/src/mailman/model/docs
Commit message (Collapse)AuthorAgeFilesLines
* PR288 vettedBarry Warsaw2017-08-291-1/+1
|
* IListManager.get() now accepts both List-IDs and FQDN list names.Barry Warsaw2017-06-241-29/+37
|
* Simplify the implementation.Barry Warsaw2016-10-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | This merges the SubscriptionManager and UnsubscriptionManager into a single SubscriptionManager implementation that handles both register() and unregister(). This allows us to use direct class-based adaptation instead of the more clunky getAdapter() API. We can also eliminate the funky _get_workflow() implementation detail. This has a couple of side-effects. .confirm() must lookup the token in the pendings database and pull out the pending type, dispatching to the proper class depending on the type, or raising a LookupError if the token is None or there is no pendable associated with the given token. This feels like an acceptable trade-off. However, this *also* means that IWorkflowStateManager must lose its 'name' argument in its methods. That's because we won't actually know the name until its too late. Honestly, the name wasn't providing much value anyway (it was always the subclass's name), so losing that seems fine too. The complication here is that the name was a primary key in the 'workflowstate' table, so we need to add its removal in the database migration.
* Collapse two doctests into one.Barry Warsaw2016-09-112-105/+148
| | | | Also, fix the return value of .unregister(), and make the tests pass.
* Reorganize the documentation for better accesibilityAbhilash Raj2016-08-211-0/+8
|
* New template system. Closes #249Barry Warsaw2016-07-161-29/+13
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Add NEWS, tweak an interface, and rewrite a unit test.Barry Warsaw2016-04-181-5/+26
|
* Extend ISubscriptionService interface.Harshit Bansal2016-04-181-0/+55
| | | | | | Add documentation. Extend ISubscriptionService interface.
* Members and nonmembers moderation action fallbackAurélien Bompard2016-03-311-10/+13
| | | | | | | | Members and nonmember's moderation action should be None by default, and in that case the moderation rule should fallback to the mailing list's default action. Fixes: #189
* Add NEWS and tweak.Barry Warsaw2016-01-131-1/+1
|
* Allow fuzz search for members in SubscriptionServiceAurélien Bompard2016-01-131-0/+16
|
* Refactor some tests and documentation.Barry Warsaw2016-01-071-0/+195
| | | | | | Increase coverage. Add ISubscriptionService.find_member() as per discussion.
* A few minor cleanups.Barry Warsaw2015-12-161-3/+4
|
* Implement suggestions from the reviewAurélien Bompard2015-12-161-2/+7
|
* Make sure that Pendables always have a typeAurélien Bompard2015-12-162-2/+3
|
* Add server_owners attribute to the user manager.Barry Warsaw2015-09-231-0/+44
|
* * Messages now include a `Message-ID-Hash` as the replacement forBarry Warsaw2015-06-141-5/+9
| | | | | | `X-Message-ID-Hash` although the latter is still included for backward compatibility. Also be sure that all places which add the header use the same algorithm.
* * The default languages from Mailman 2.1 have been ported over. Given byBarry Warsaw2015-05-071-5/+0
| | | | Aurélien Bompard.
* Fix a typo. Found by Rashi Karanpuria.Barry Warsaw2015-05-041-3/+3
|
* Checkpointing.Barry Warsaw2015-04-161-4/+15
|
* Plumb the subscription policy through the REST API.Barry Warsaw2015-04-151-4/+14
|
* * Mailing list subscription policy work flow has been completely rewritten.Barry Warsaw2015-04-153-300/+101
|\ | | | | | | | | | | It now properly supports email verification and subscription confirmation by the user, and approval by the moderator using unique tokens. ``IMailingList`` objects now have a ``subscription_policy`` attribute.
| * Prevent replay attacks with the confirmation token.Barry Warsaw2015-04-151-2/+0
| |
| * Full test suite passes.Barry Warsaw2015-04-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * Make sure Registrar.discard() removces any workflow state manager state associated with the token, and that this is flushed to SA. * Adjust the email commands to the new IRegistrar API. * Update the IRegistrar interface. * Add IWorkflowStateManager.discard() and make `count` an attribute/property. * Mark two tests as expected failures due to LP: #1444184.
| * Merge the member query fix branch.Barry Warsaw2015-04-141-2/+36
| |\
| | * Added IMember.subscriber to definitively return how a member is subscribed toBarry Warsaw2015-04-141-2/+36
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | the mailing list (via preferred address/user or explicit address). IMember.get_member() is defined to return the explicit address when members are subscribed in both ways. IMember.get_memberships() returns a sequence of length 0, 1, or 2 containing all the member records associated with the email address. Fixed the AbstractMemberRoster methods query to properly return subscriptions via the user's preferred address and via an explicit address.
| * Checkpointing.Barry Warsaw2015-04-141-298/+55
| |
| * Give IPendings a count of entries.Barry Warsaw2015-04-131-0/+10
|/
* Checkpointing:Barry Warsaw2015-04-061-0/+15
| | | | | | * Cleanups. * Updates to domains and users. * Allow is_server_owner to be PUT.
* Reviewed and updated domains doctest.Barry Warsaw2015-04-061-13/+18
|
* Abhilash's branch, pre-cleaning.Barry Warsaw2015-04-062-24/+27
|\
| * * implement left over methodsAbhilash Raj2015-04-061-5/+5
| | | | | | | | * add and remove owners using the address
| * * Add `drop_column` inside sqlite check, fix indentationAbhilash Raj2015-03-311-4/+4
| | | | | | | | | | | | | | | | * Change `Owner` to `DomainOwner` * Fix indentation errors in docs * add multiple owners using `add_owners` * all dummy addresses should be using example.com, example.org to avoid conflict ever * add dummy tests
| * add tests, fix docs, remove contact_addressAbhilash Raj2015-03-281-23/+26
| |
* | trunk mergeBarry Warsaw2015-03-281-0/+22
|\ \
| * | More tests of make_user().Barry Warsaw2015-03-211-0/+22
| |/
* / Fix some typos.Barry Warsaw2015-03-281-3/+3
|/
* Another test cleansing.Barry Warsaw2014-12-211-6/+6
|
* Clean up a SA warning.Barry Warsaw2014-12-211-2/+2
|
* More test repair.Barry Warsaw2014-12-151-1/+1
|
* Fix pending.rst.Barry Warsaw2014-12-141-5/+5
| | | | | | NOTE NOTE NOTE: This is a potential upgrade issue. The values in the pending database used to be either custom pickle-like objects or actual pickles. Now all values are JSON representations.
* All model tests except for pendings.rst is passing now.Barry Warsaw2014-12-133-67/+9
|
* More model test fixes and ports.Barry Warsaw2014-12-134-98/+27
|
* languages.rst passesBarry Warsaw2014-12-011-2/+2
|
* model/addresses.rst passes, with some bad-path cases moved to unittests.Barry Warsaw2014-12-011-17/+3
|
* registrar.rst is ported; some bad path tests moved to a unittest.Barry Warsaw2014-12-011-29/+4
|
* Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-6/+9
|
* Use print() to smooth over the SA return of Python longs in PostgreSQL.Barry Warsaw2014-10-132-21/+21
|
* Pass all tests with PYTHONWARNINGS=error.Barry Warsaw2014-09-221-2/+3
| | | | | | | | | | * Switch away from a deprecated unittest method. * Switch away from using deprecated Exceptions.message attribute. * Decode the bytes b32 encoded X-Message-ID-Hash header into a Unicode. * Fix a rather glaring bug in Pendings.add() where we were actually not properly coercing bytes to unicode for the keys and values! I guess it's a good thing that SQLAlchemy is more strict than Storm. * Some cosmetic fixes.
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-2815-156/+156
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.