summaryrefslogtreecommitdiff
path: root/src/mailman/model
Commit message (Collapse)AuthorAgeFilesLines
...
| * | * Add `drop_column` inside sqlite check, fix indentationAbhilash Raj2015-03-314-31/+23
| | | | | | | | | | | | | | | | | | | | | | | | * 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-283-28/+70
| | |
| * | merge serverowner branchAbhilash Raj2015-03-272-16/+34
| |\ \
| | * | all tests passing now (except doctests)Abhilash Raj2015-03-262-3/+3
| | | |
| | * | add domainowner and serverowner optionsAbhilash Raj2015-03-212-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | * 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
| | | * Refactorings and tests.Barry Warsaw2015-03-292-5/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-293-4/+69
| |_|/| |/| | |
| | | * Workflow: allow saving and restoring with an empty queueAurélien Bompard2015-03-271-2/+2
| | | |
| | | * Merge from headAurélien Bompard2015-03-266-10/+58
| | | |\ | | |_|/ | |/| |
| | | * Save the workflow state in the databaseAurélien Bompard2015-03-251-1/+26
| | | |
| | | * Add a table to store workflow statesAurélien Bompard2015-03-251-0/+41
| | | |
| | | * Make the subscription policy a database columnAurélien Bompard2015-03-211-2/+1
| | | |
| | | * Resurrect Barry's subpolicy branch (lp:~barry/mailman/subpolicy)Aurélien Bompard2015-03-205-9/+86
| | |/
* | | trunk mergeBarry Warsaw2015-03-284-5/+82
|\ \ \
| * \ \ Merging in several refactorings, and a REST API change.Barry Warsaw2015-03-264-5/+82
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Extended test helper subscribe() which takes an optional email address andBarry Warsaw2015-03-261-0/+2
| | | | | | | | | | | | | | | | returns the newly created member.
| | * | More tests of make_user().Barry Warsaw2015-03-212-5/+59
| | | |
| | * | * Refactor add_member() so that it uses a RequestRecord namedtuple.Barry Warsaw2015-03-211-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | * RequestRecord contains no password key so these are not part of the held requests database any more. * Pending record contains `email` now instead of `address`.
* | | | Fix some typos.Barry Warsaw2015-03-281-3/+3
|/ / /
* / / LP: #1432239 - Make sure acceptable aliases are deleted before the mailingBarry Warsaw2015-03-243-3/+28
|/ / | | | | | | list is deleted.
* | * When deleting a user object, make sure their preferences are also deleted.Barry Warsaw2015-03-203-7/+30
|\ \ | |/ |/| | | Given by Abhishek. (LP: #1418276)
| * * When deleting a user object, make sure their preferences are also deleted.Barry Warsaw2015-03-203-7/+28
|/ | | | Given by Abhishek. (LP: #1418276)
* * A new API is provided to support non-production testing infrastructures,Barry Warsaw2015-02-132-0/+58
| | | | | | | | | | | | allowing a client to cull all orphaned UIDs via ``DELETE`` on ``<api>/reserved/uids/orphans``. Note that *no guarantees* of API stability will ever be made for resources under ``reserved``. (LP: #1420083) Also: - Allow @dbconnection methods to be @staticmethods taking only one argument, the store to perform the query on.
* * When deleting a user via REST, make sure all linked addresses are deleted.Barry Warsaw2015-02-091-1/+1
| | | | Found by Andrew Stuart. (LP: #1419519)
* * When creating a user with an email address, do not create the user recordBarry Warsaw2015-02-052-1/+52
| | | | | if the email address already exists. Given by Andrew Stuart. (LP: #1418280)
* We don't need the 'six' package any more.Barry Warsaw2015-01-043-7/+5
|
* Bump copyright years.Barry Warsaw2015-01-0432-32/+32
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-2231-157/+50
|
* Trunk merge.Barry Warsaw2014-12-222-1/+7
|\
| * * Fixed getting non-ASCII filenames from RFC 2231 i18n'd messages. Given byBarry Warsaw2014-12-082-1/+7
| |\ | | | | | | | | | Aurélien Bompard. (LP: #1060951)
| | * Convert unicode instance testing to bytes instance testingAurélien Bompard2014-12-042-2/+2
| | |
| | * Do not auto-convert Message headers to unicodeAurélien Bompard2014-12-022-1/+6
| |/ | | | | | | Fixes: bug #1060951
* | 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-142-28/+16
| | | | | | | | | | | | 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.
* | Add test module.Barry Warsaw2014-12-131-0/+74
| |
* | All model tests except for pendings.rst is passing now.Barry Warsaw2014-12-136-82/+30
| |
* | More model test fixes and ports.Barry Warsaw2014-12-139-106/+125
| |
* | Port some of the commands.Barry Warsaw2014-12-131-2/+0
| |
* | CheckpointingBarry Warsaw2014-12-122-1/+3
| |
* | languages.rst passesBarry Warsaw2014-12-011-2/+2
| |
* | model/addresses.rst passes, with some bad-path cases moved to unittests.Barry Warsaw2014-12-012-17/+25
| |
* | registrar.rst is ported; some bad path tests moved to a unittest.Barry Warsaw2014-12-012-29/+68
| |
* | test_requests succeeds now, after changing some LargeBinary columns intoBarry Warsaw2014-12-014-13/+12
| | | | | | | | Unicode columns.
* | Checkpointing.Barry Warsaw2014-11-304-26/+24
|/ | | | | | | | | | 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.
* DatabaseBarry Warsaw2014-11-0127-533/+571
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -------- * The ORM layer, previously implemented with Storm, has been replaced by SQLAlchemy, thanks to the fantastic work by Abhilash Raj and Aurélien Bompard. Alembic is now used for all database schema migrations. * The new logger `mailman.database` logs any errors at the database layer. API --- * Several changes to the internal API: - `IListManager.mailing_lists` is guaranteed to be sorted in List-ID order. - `IDomains.mailing_lists` is guaranteed to be sorted in List-ID order. - Iteration over domains via the `IDomainManager` is guaranteed to be sorted by `IDomain.mail_host` order. - `ITemporaryDatabase` interface and all implementations are removed.
| * Merge in the last of Aurelien's changes, and make the test suite pass withBarry Warsaw2014-10-311-1/+2
| | | | | | | | PostgreSQL.
| * Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-303-9/+13
| |
| * Use print() to smooth over the SA return of Python longs in PostgreSQL.Barry Warsaw2014-10-132-21/+21
| |