~barry/mailman/templatecache

« back to all changes in this revision

Viewing changes to src/mailman/model/docs/requests.rst

  • Committer: Barry Warsaw
  • Date: 2012-01-30 15:37:16 UTC
  • Revision ID: barry@list.org-20120130153716-s9qx07i6i0rltyax
 * Held messages can now be moderated through the REST API.  Mailing list
   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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
mailing list you need to get its requests object.
38
38
::
39
39
 
40
 
    >>> from mailman.interfaces.requests import IListRequests, IRequests
41
 
    >>> from zope.component import getUtility
 
40
    >>> from mailman.interfaces.requests import IListRequests
42
41
    >>> from zope.interface.verify import verifyObject
43
42
 
44
43
    >>> mlist = create_list('test@example.com')
45
 
    >>> requests = getUtility(IRequests).get_list_requests(mlist)
 
44
    >>> requests = IListRequests(mlist)
46
45
    >>> verifyObject(IListRequests, requests)
47
46
    True
48
47
    >>> requests.mailing_list