summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Branch his ready.Barry Warsaw2015-04-176-26/+79
| | |
* | | Check pointing new subscription moderation REST API.Barry Warsaw2015-04-176-92/+147
| | |
* | | Updates.Barry Warsaw2015-04-162-36/+10
| | |
* | | Checkpointing.Barry Warsaw2015-04-162-0/+268
| | |
* | | Checkpointing.Barry Warsaw2015-04-1611-528/+428
| | |
* | | Clean up some templates; given by raj-abhilash1Barry Warsaw2015-04-164-25/+13
|\ \ \
* | | | Move a doctest to the right directory.Barry Warsaw2015-04-161-0/+0
| | | |
* | | | Update versions for 3.0rc1, but don't tag yet.Barry Warsaw2015-04-162-5/+5
| | | |
* | | | Plumb the subscription policy through the REST API.Barry Warsaw2015-04-1516-169/+286
| | | |
* | | | Give the SubscriptionWorkflow a member attribute which gets set to the memberBarry Warsaw2015-04-153-43/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | once their subscription is completed. Remove some dead tests. Update an interface.
* | | | A better email validator which actually validates the email address.Barry Warsaw2015-04-152-2/+22
| | | |
* | | | Rewrite the subscription service doctest for the updated API.Barry Warsaw2015-04-152-145/+118
| | | |
* | | | The SubscriptionWorkflow and Registar classes now have both a token and aBarry Warsaw2015-04-156-123/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "token owner". The latter describes who owns the token --i.e. which phase of the workflow is being waited on. It can either be no one, the subscriber, or the moderator. Tokens and token owners are properly initialized and reset when the workflow is completed, so we always know which step of the process is being waited on. Also, remove ISubscriptionService.join() since this will now be handled by the IRegistrar adapter.
* | | | Add a test for a reported (but non-reproducible) failure patching a mailing ↵Barry Warsaw2015-04-151-1/+19
| | | | | | | | | | | | | | | | list's subscription policy.
| | | * mark the test as an expected failureAbhilash Raj2015-04-161-0/+1
| | | |
| | | * Add test case to check a bug in falcon's Request classAbhilash Raj2015-04-161-0/+8
| | |/ | |/|
| * | fix tests for previous commitAbhilash Raj2015-04-163-8/+6
| | |
| * | merge trunkAbhilash Raj2015-04-1552-759/+2205
| |\ \ | |/ / |/| |
* | | Open templates for reading in utf-8; given by abompard.Barry Warsaw2015-04-151-1/+1
| | |
* | | Abhilash's fix for allowing singleton strings in REST interfaces that alsoBarry Warsaw2015-04-154-2/+69
|\ \ \ | | | | | | | | | | | | accept lists of strings.
| * | | add test for previous bugfixAbhilash Raj2015-04-141-0/+9
| | | |
| * | | fix creating domains from rest with only one ownersAbhilash Raj2015-04-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | When domains are created using REST API with only one owner, validator changes it to be a string instead of a list and so the .add() function iterates over the string raising InvalidEmailError
* | | | * Mailing list subscription policy work flow has been completely rewritten.Barry Warsaw2015-04-1547-756/+2135
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | 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-1510-19/+96
| | | |
| * | | Remove unused import.Barry Warsaw2015-04-141-1/+0
| | | |
| * | | Full test suite passes.Barry Warsaw2015-04-1414-100/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-146-16/+163
| |\ \ \
| | * | | Added IMember.subscriber to definitively return how a member is subscribed toBarry Warsaw2015-04-146-17/+162
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1417-636/+307
| | | |
| * | | The SubscriptionWorkflow class doesn't need to include the expiry date in itsBarry Warsaw2015-04-133-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pendable data since that gets added automatically by the IPendings utility. After the user is subscribed, clean up the saved workflows and reset the token to None. Give the SubscriptionWorkflow a name property for convenience.
| * | | * Give the workflow state manager a count method.Barry Warsaw2015-04-133-8/+36
| | | | | | | | | | | | | | | | | | | | * The workflow state manager no longer allows updates via .save(). * Restoring a workflow state evicts the record from the database.
| * | | Give IPendings a count of entries.Barry Warsaw2015-04-132-0/+13
| | | |
| * | | SubscriptionPolicy is largely done, modulo bugs, and the unknown-unknown ofBarry Warsaw2015-04-135-108/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | course. This commit contains test failures because the next step is to hook everything up. Changes here include: * confirm.txt removes the URL since we can't know that. * Changes to the ConfirmationNeededEvent * Create the Pendable early in the workflow. * Clean up test. * Update IRegistrar docstring.
| * | | Subscription workflows now support bans.Barry Warsaw2015-04-133-3/+24
| | | |
| * | | Fix regression.Barry Warsaw2015-04-131-1/+0
| | | |
| * | | Subsume hold_subscription() functionality into the subscription workflow.Barry Warsaw2015-04-133-14/+108
| | | | | | | | | | | | | | | | | | | | Specifically, log a message and send a notification to the list owners when a subscription is held and the list is so configured.
| * | | Handle save/restore of the subscription workflow.Barry Warsaw2015-04-136-46/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To handle the case of restoring a saved workflow, allow the subscriber to be None in the constructor, but assert that it is not None after the first workflow step. Add setters/getters for handling save/restore. In the base workflow interface, rename key to token.
| * | | Subscription workflow checkpointing.Barry Warsaw2015-04-095-74/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * TO DO: - hook up sending of confirmation - processing confirmations and continuing workflow - get tokens for saving workflows - integrate with RequestRecord - integrate with hold_subscription - after getting moderator approval, continue workflow
| * | | Rebase Alembic revisions.Barry Warsaw2015-04-071-2/+2
| | | |
| * | | Add run_thru() and run_until() to workflow, mostly for testing purposes.Barry Warsaw2015-04-072-2/+46
| | | |
| * | | Trunk mergeBarry Warsaw2015-04-0725-115/+660
| |\ \ \ | |/ / / |/| | |
| * | | Check pointingBarry Warsaw2015-04-064-8/+31
| | | |
| * | | Advertise the subscription policy in the REST APIAurélien Bompard2015-03-313-1/+7
| | | |
| * | | Fix some typos.Barry Warsaw2015-03-302-3/+3
| | | |
| * | | * Refactor test_workflow into a separate module.Barry Warsaw2015-03-294-74/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * save_state() -> save() * restore_state() -> restore() * Add push() as the public API for pushing new state on the deque. * Uppercase class attributes. * Add logging on exception. * Minor style fixes.
| * | | Fix merge turd.Barry Warsaw2015-03-291-0/+3
| | | |
| * | | Fix merge turd.Barry Warsaw2015-03-291-1/+1
| | | |
| * | | Refactorings and tests.Barry Warsaw2015-03-297-89/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move the basic Workflow class to a module in mailman.app. * Rename the interface and model modules. * Update the configure.zcml. * Minor style fixes. * Add a test for the workflow model.
| * | | Merge abompard's subpolicy branch port with trunk. Still a WIP.Barry Warsaw2015-03-2915-11/+560
| |\ \ \
| | * | | Test when confirmations are requiredAurélien Bompard2015-03-272-2/+21
| | | | |