summaryrefslogtreecommitdiff
path: root/src/mailman/model/requests.py
Commit message (Collapse)AuthorAgeFilesLines
* Delete subscription requests when a mailing list is deleted.Barry Warsaw2017-01-081-2/+2
| | | | Closes #214
* Delete PendedKeyValue before deleting Pended.Abhilash Raj2017-01-081-2/+4
|
* Delete all pendings when mailing list is deletedAbhilash Raj2017-01-081-0/+8
|
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* MySQL is now an officially supported database.Barry Warsaw2016-07-291-6/+6
| | | | Given by Abhilash Raj.
* Restore the fix for PostgreSQL.Barry Warsaw2016-04-291-2/+2
|
* Restore a test from !151 which only fails on PostgreSQL.Barry Warsaw2016-04-291-2/+2
| | | | | | For now, *deliberately* cause the test to fail. I want to prove this correctly addresses the issue on the GL CI. Once I've done that, I'll restore the patch and approve the new MR.
* Sort the held requests.Aurélien Bompard2016-04-281-1/+2
|
* Clean up the model and languages directories.Barry Warsaw2016-03-251-9/+3
|
* Prevent moderation of messages held for a different list.Barry Warsaw2016-02-071-1/+1
| | | | Closes: #161
* Super duper.Barry Warsaw2016-01-261-2/+2
| | | | | * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes.
* Several optimizations:Barry Warsaw2016-01-111-2/+1
| | | | | | | | | | | | * Use `yield from` wherever appropriate. * Use SA's .one_or_none() where appropriate. - Fix a bug in MailingList.pass_extensions. - Use ValueError in other places for consistency. - Remove unreached/nonsense code. - Simplify the SubscriptionService.find_member() and .find_members() implementations. - Boost coverage.
* A little bit more refactoring, just to keep things cleaner.Barry Warsaw2016-01-061-2/+4
|
* Return SQL queries in IListRequests.of_typeAurélien Bompard2016-01-061-3/+1
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Make sure that Pendables always have a typeAurélien Bompard2015-12-161-0/+2
|
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-5/+3
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-3/+2
|
* Port some of the commands.Barry Warsaw2014-12-131-2/+0
|
* CheckpointingBarry Warsaw2014-12-121-0/+2
|
* test_requests succeeds now, after changing some LargeBinary columns intoBarry Warsaw2014-12-011-2/+2
| | | | Unicode columns.
* Checkpointing.Barry Warsaw2014-11-301-8/+9
| | | | | | | | | | 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.
* * remove migrate commandAbhilash Raj2014-10-101-2/+2
| | | | | | | | * remove alembic.cfg, move contents to schema.cfg * fix import errors in src/mailman/model/language.py * add indexes * change the previously wrong written tablename autoresponserecord * change alembic_cfg to use schema.cfg instead of alembic.cfg
* Update some comments.Barry Warsaw2014-09-231-1/+4
|
* Clean up pass.Barry Warsaw2014-09-221-4/+7
|
* Another test repair.Barry Warsaw2014-09-211-0/+2
|
* * remove some unused codeAbhilash Raj2014-09-191-1/+0
| | | | | | | * add left out documentation * remov super(<class>).__init__() calls in models as it was useless now. * remove schema_migrate func in mailman/database/base.py
* fix all tests in mailman.model.testsAbhilash Raj2014-09-131-11/+10
|
* * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-061-1/+1
| | | | * update some queries to match SA style
* replace all storm types and relationships with sqlalchemyAbhilash Raj2014-09-051-7/+10
|
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* Complete the exposure of subscription request moderation via REST (still needsBarry Warsaw2012-12-161-1/+3
| | | | | | | | | | | | | | | | | | a clean up pass and thorough unit testing). * Insert the RequestType enum name into the data dictionary returned by get_request(). Otherwise, there's really no good way to get that information, which several APIs need. * Flatten the data dictionary returned by held message JSON representations, into the JSON dictionary itself. Do a filtering and rename pass on the keys. - rename 'id' to 'request_id' - remove the redundant 'key' * Refactor some common stuff into _ModerationBase, although more refactoring is coming.
* Expose held subscription/unsubscription requests via the API.Barry Warsaw2012-12-151-0/+3
| | | | | | * hold_subscription(): Don't str(mode) to get a string representation, just mode.name since we know it is a DeliveryMode. This means we don't need to split the value later in handle_subscription().
* * Non-unicode values in msgdata broke pending requests. (LP: #1031391)Barry Warsaw2012-08-171-6/+20
|
* General code cleanup.Barry Warsaw2012-04-251-3/+4
| | | | | | | | - 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.
* - Module modernatizations (print function).Barry Warsaw2012-04-221-19/+24
| | | | - Convert direct use of config.db global to use the @dbconnection decorator.
* * Held messages can now be moderated through the REST API. Mailing listBarry Warsaw2012-01-301-12/+5
| | | | | | | | | | | | | | | resources now accept a `held` path component. GETing this returns all held messages for the mailing list. POSTing to a specific request id under this url can dispose of the message using `Action` enums. * `IRequests` interface is removed. Now just use adaptation from `IListRequests` directly (which takes an `IMailingList` object). * `handle_message()` now allows for `Action.hold` which is synonymous with `Action.defer` (since the message is already being held). * `IListRequests.get_request()` now takes an optional `request_type` argument to narrow the search for the given request. - also, print_function is now a standard __future__ import. The template has been updated, but add this to modules as you edit them.
* copybumpBarry Warsaw2012-01-011-1/+1
|
* Improved the way flufl.enum.Enums are stored in the database. Now, theyBarry Warsaw2011-09-231-1/+1
| | | | | | | | should always be stored as INTEGER columns, with the enum class explicitly described in the code. This should be more efficient, and besides EIBTI. Also, filled in a few additional IMailingList attributes which were not documented in the interface.
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Fix the obvious errors identified by pyflakes. Skip false positives (mostlyBarry Warsaw2010-10-081-1/+1
| | | | | due to _() interpolation) and a few other problems that did not have immediately obvious fixes.
* Happy New Year.Barry Warsaw2010-01-011-1/+1
|
* database/model reorganization. Model classes go in mailman.model. StockBarry Warsaw2009-10-101-0/+140
database support goes in mailman.database. Move stuff out of mailman/database/__init__.py.