summaryrefslogtreecommitdiff
path: root/src/mailman/rest/lists.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Tweaks and fixes by Barry.Barry Warsaw2013-03-211-1/+1
|
* Removed unused `default_count` argument and remove one wrapping level in ↵Florian Fuchs2013-03-201-3/+3
| | | | paginate decorator
* REST API: Added pagination functionality to list, member and user collections.Florian Fuchs2013-03-201-1/+4
| | | | This is related to LP: #1156529.
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* * List styles are supported through the REST API. Get the list of availableBarry Warsaw2012-12-301-2/+4
| | | | | | | | | | | styles (by name) via `.../lists/styles`. Create a list in a specific style by using POST data `style_name=<style>`. (LP: #975692) Also: * Rewrite list.rst and some of configuration.rst to be more readable as documentation. Bad-path tests are moved to unittests. * Some improvements to printing lists as part of REST responses. This eliminates the ugly u''-prefixes on strings.
* Expose held subscription/unsubscription requests via the API.Barry Warsaw2012-12-151-2/+9
| | | | | | * 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().
* * Add list_id to JSON representation for a mailing list (given by JimmyBarry Warsaw2012-09-221-4/+12
|\ | | | | | | | | | | | | | | Bergman). * The canonical resource for a mailing list (and thus its self_link) is now the URL with the list-id. To reference a mailing list, the list-id url is preferred, but for backward compatibility, the posting address is still accepted.
| * Add list_id to the REST API list representationJimmy Bergman2012-09-201-0/+1
|/
* * The link between members and the mailing lists they are subscribed to, isBarry Warsaw2012-09-041-2/+2
| | | | | | | | | | | | | | | now via the RFC 2369 `list_id` instead of the fqdn listname (i.e. posting address). This is because while the posting address can change if the mailing list is moved to a new server, the list id is fixed. (LP: #1024509) + IListManager.get_by_list_id() added. + IListManager.list_ids added. + IMailingList.list_id added. + Several internal APIs that accepted fqdn list names now require list ids, e.g. ISubscriptionService.join() and .find_members(). + IMember.list_id attribute added; .mailing_list is now an alias that retrieves and returns the IMailingList. - list_id added (LP: #1024509)
* Merge the Pipermail eradication branch. The scrubber is also removed.Barry Warsaw2012-03-171-4/+1
|\ | | | | | | | | | | | | | | | | | | | | | | * Configuration variable `[mailman]filtered_messages_are_preservable` controls whether messages which have their top-level `Content-Type` filtered out can be preserved in the `bad` queue by list owners. * Configuration section `[scrubber]` removed, as is the scrubber handler. This handler was essentially incompatible with Mailman 3 since it required coordination with Pipermail to store attachments on disk. * Schema additions: - mailinglist.filter_action
| * Eradicate Pipermail. Everything but the scrubber test works. That will takeBarry Warsaw2012-03-151-4/+1
| | | | | | | | some new APIs I suspect.
* | * Add property `IRoster.member_count`.Barry Warsaw2012-03-151-1/+1
| | | | | | | | | | Also, change the implementation of mailing list REST resource's member_count to use the more efficient implementation of IRoster.member_count.
* | * Mailing list resources now have a `member_count` attribute which gives theBarry Warsaw2012-03-151-2/+4
|\ \ | | | | | | | | | number of subscribed members. Given by Toshio Kuratomi.
| * | Export both the count of members and the latest digest volume in the rest apitoshio2012-03-151-0/+2
| |/
* / Schema change. After discussion at Pycon, we decided to change "real_name" toBarry Warsaw2012-03-151-1/+1
|/ | | | | | | | | | | "display_name" across the board. * `IMailingList.real_name` -> `IMailingList.display_name` * `IUser.real_name` -> `IUser.display_name` * `IAddress.real_name` -> `IAddress.display_name` * Schema changes: - real_name -> display_name (mailinglist, user, address)
* * Held messages can now be moderated through the REST API. Mailing listBarry Warsaw2012-01-301-0/+8
| | | | | | | | | | | | | | | 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
|
* * Getting the roster or configuration of a nonexistent list did not give aBarry Warsaw2011-09-011-0/+4
| | | | 404 error (LP: #837676). Given by Stephen A. Goss.
* * New REST resource http://.../<domain>/lists can be GETed in order to findBarry Warsaw2011-08-301-1/+18
|\ | | | | | | | | all the mailing lists in a specific domain (LP: #829765). Given by Stephen A. Goss.
| * some tweaks to fix for LP: 829765 based on feedbackStephen A. Goss2011-08-231-1/+1
| |
| * REST API: add listing of mailing lists per domainStephen A. Goss2011-08-191-1/+19
|/
* Remove role plurals from /lists/<fqdn_listname/rosters/<role>Barry Warsaw2011-08-141-8/+2
|
* Fixed broken API for getting a membership via role and email from a mailingBarry Warsaw2011-08-141-4/+10
| | | | | | list. (LP: #825570) Untested code is broken code.
* * The IMailingList attribute ``host_name`` has been renamed to ``mail_host``Barry Warsaw2011-06-161-1/+1
| | | | | for consistency. This changes the REST API for mailing list resources. (LP: #787599)
* Complete the ability to change a subscription address, both internally and viaBarry Warsaw2011-04-251-1/+21
| | | | | | | | | | | | | | the REST API. (LP: #643949) * New resource path in REST API: /addresses/<email>/memberships gets all the memberships for a given email address. * In the REST API, PUTting or PATCHing a list configuration now returns a 204 (No Content) success code instead of a 200 success code with an empty body. * When a user is subscribed with their preferred address, changing the preferred address also changes all subscriptions. * When a user is subscribed with a specific address, their subscription can be changed to any verified address they control. * Use a new naming scheme for doctests with multiple mailing lists.
* * Move members.txt corner cases to unittests.Barry Warsaw2011-04-201-0/+2
| | | | | | | * Fix a case in a list's /members API where the listname is bogus. * Catch NotAMemberError form delete_member() and return not_found. * Refactor REST helpers so that call_api() can be used in unittests without doing any prints to stdout.
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Refactor, and add a missing import.Barry Warsaw2010-08-231-1/+2
|
* Refactor the list configuration code via the REST interface, and flesh it outBarry Warsaw2010-08-231-218/+11
| | | | considerably.
* Expose description in the interface and REST API.Barry Warsaw2010-08-121-0/+2
|
* Expose the autoreponse values in the IMailingList interface and REST API.Barry Warsaw2010-08-121-1/+34
|
* Expose administrivia in the IMailingList interface and REST API.Barry Warsaw2010-08-111-0/+2
|
* Expose anonymous_list and advertised in the IMailingList interface and in ↵Barry Warsaw2010-08-111-0/+4
| | | | the configuration REST API.
* Expose in the IMailingList interface, and in the REST API.Barry Warsaw2010-08-111-1/+7
| | | | | | | * admin_immed_notify * admin_notify_mchanges Sort acceptable aliases when returned from the API.
* Acceptable aliases as a sub-resource.Barry Warsaw2010-08-101-0/+64
|
* Placeholder for PATCH implementation.Barry Warsaw2010-08-101-4/+10
|
* Implement HTTP PUT (good path) for changing a list's configuration.Barry Warsaw2010-08-101-39/+83
|
* Access mailing list configuration via RESTBarry Warsaw2010-08-101-0/+71
| | | | | | | | | | * last_post_time -> last_post_at * protocol -> scheme * creation_date _> created_at * last_post_time -> last_post_at * Add an extended JSON encoder for datetimes * Be sure to initialize convert_html_to_plaintext and filter_content in the default style.
* Fixes bug LP: #601899; delete list function in rest server.Barry Warsaw2010-07-061-2/+13
|
* * Fix the bin/test -e/--stderr option to work with the currentBarry Warsaw2010-06-181-1/+28
| | | | | | | | | | | | | zope.testrunner. Actually, divorce it from the latter and handle the sys.argv sequence ourselves. * Added IMailingList.get_roster() which returns the named roster (from a MemberRole enum). * The start of an IMailingList doctest. This needs much more detail. * Move the subscribe() function from membership.txt into the mailman.testing.helpers. * Added new REST interface for getting all the members of a roster for a specific mailing list: .../lists/<list>/roster/<role>. Note that <role> is the plural form of the MemberRole enum.
* Because we'll often need to turn functions into restish matchers, add aBarry Warsaw2010-06-181-6/+3
| | | | convenient decorator.
* Add POST validators.Barry Warsaw2010-03-011-8/+6
|
* Refactoring for common collection code.Barry Warsaw2010-02-251-22/+11
|
* Refactor both the mailing lists and membership REST wrappers.Barry Warsaw2010-02-251-0/+140