summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\
| * * Domains now have a list of owners, which are ``IUser`` objects, instead ofBarry Warsaw2015-04-0622-115/+652
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the single ``contact_address`` they used to have. ``IUser`` objects now also have a ``is_server_owner`` flag (defaulting to False) to indicate whether they have superuser privileges. Give by Abhliash Raj, with fixes and refinements by Barry Warsaw. (LP: #1423756) * Domains can now optionally be created with owners; domain owners can be added after the fact; domain owners can be deleted. Also, users now have an ``is_server_owner`` flag as part of their representation, which defaults to False, and can be PUT and PATCH'd. Given by Abhilash Raj, with fixes and refinements by Barry Warsaw. (LP: #1423756)
| | * Add lots of test for various bits of domain owners.Barry Warsaw2015-04-066-37/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A little refactoring of list_of_str() into list_of_strings_validator() which is now put in the validators.py module and used in several places. Python 3 super() style. Add some code and tests to catch <domain>/owners references when <domain> doesn't exist.
| | * Checkpointing:Barry Warsaw2015-04-068-27/+216
| | | | | | | | | | | | | | | | | | * Cleanups. * Updates to domains and users. * Allow is_server_owner to be PUT.
| | * Reviewed and updated domains doctest.Barry Warsaw2015-04-061-13/+18
| | |
| | * Flesh out the domain interface, model, and tests. Clean up style.Barry Warsaw2015-04-063-34/+112
| | |
| | * Abhilash's branch, pre-cleaning.Barry Warsaw2015-04-0619-92/+249
| |/|
| | * * implement left over methodsAbhilash Raj2015-04-069-55/+67
| | | | | | | | | | | | * add and remove owners using the address
| | * * Add `drop_column` inside sqlite check, fix indentationAbhilash Raj2015-03-318-52/+40
| | | | | | | | | | | | | | | | | | | | | | | | * 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-288-63/+102
| | |
| | * merge serverowner branchAbhilash Raj2015-03-278-30/+146
| | |\
| | | * all tests passing now (except doctests)Abhilash Raj2015-03-267-23/+38
| | | |
| | | * add domainowner and serverowner optionsAbhilash Raj2015-03-216-26/+128
| | | | | | | | | | | | | | | | | | | | | | | | * Add is_serverowner flag in User model and api * Add owner table for user-domain's many to many relationship * add owners subresource in domain's rest api
| * | | * The built-in example ``IArchiver`` implementations now explicitly returnBarry Warsaw2015-04-064-0/+8
| | | | | | | | | | | | | | | | None. (LP: #1203359)
| * | | Update docstring.Barry Warsaw2015-03-291-0/+1
| | | |
* | | | 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
| | | |
| * | | Write and move tests for the bare Workflow classAurélien Bompard2015-03-272-37/+46
| | | |
| * | | Start implmenting the send_confirmation stepAurélien Bompard2015-03-271-0/+7
| | | |
| * | | Workflow: allow saving and restoring with an empty queueAurélien Bompard2015-03-274-7/+33
| | | |
| * | | Factor generic workflow operations in their own classAurélien Bompard2015-03-261-23/+37
| | | |
| * | | Save and restore attributesAurélien Bompard2015-03-262-7/+20
| | | |
| * | | Merge from headAurélien Bompard2015-03-2613-18/+186
| |\ \ \
| * | | | Save the workflow state in the databaseAurélien Bompard2015-03-255-4/+88
| | | | |
| * | | | Add a table to store workflow statesAurélien Bompard2015-03-254-0/+116
| | | | |
| * | | | Store method names in the SubscriptionWorkflow to allow state savingAurélien Bompard2015-03-251-16/+15
| | | | |
| * | | | SubscriptionWorkflow: add a test for moderated listsAurélien Bompard2015-03-252-5/+28
| | | | |
| * | | | Import the subscription_policy from Mailman2Aurélien Bompard2015-03-212-1/+29
| | | | |
| * | | | Make the subscription policy a database columnAurélien Bompard2015-03-213-9/+46
| | | | |
| * | | | Typo in the previous commitAurélien Bompard2015-03-202-2/+2
| | | | |
| * | | | Restore the features of commit 7301.3.1 which were lost in the mergeAurélien Bompard2015-03-202-9/+26
| | | | |
| * | | | Remove commented-out codeAurélien Bompard2015-03-201-53/+0
| | | | |
| * | | | Resurrect Barry's subpolicy branch (lp:~barry/mailman/subpolicy)Aurélien Bompard2015-03-2028-313/+636
| | |_|/ | |/| |
* | | | trunk mergeBarry Warsaw2015-03-2828-301/+440
|\ \ \ \
| * | | | Update NEWS.Barry Warsaw2015-03-261-0/+4
| | | | |
| * | | | Merging in several refactorings, and a REST API change.Barry Warsaw2015-03-2627-301/+436
| |\ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backward Incompatible REST API Changes: * The JSON representation for subscription holds now no longer contains the `password` key. Also, the `address` key has been renamed to `email` for consistency with established terminology and other usage. Other Internal API Changes: * IUserManager has grown a `make_user()` method. Refactorings: * Most uses in the test suite of add_member() have been replaced with a new version of the subscribe() helper. This reduces the surface area of this ancient internal API. Eventually add_member() will have to go away or significantly change with the subscription policy workflow. * hold_subscription() as well as the remaining instances of add_member() now use a namedtuple in their arguments, to keep the signatures manageable.
| | * | | Replace add_member() with subscribe() helper.Barry Warsaw2015-03-261-16/+6
| | | | |
| | * | | Replace add_member() with subscribe() helper.Barry Warsaw2015-03-261-10/+4
| | | | |
| | * | | Replace add_member() with subscribe() helper.Barry Warsaw2015-03-261-3/+2
| | | | |