| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |\ |
|
| | | |
|
| | |\ |
|
| | | |
| | |
| | |
| | | |
* add and remove owners using the address
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| |/
|
|
| |
list is deleted.
|
| |\
| |
| |
| | |
Given by Abhishek. (LP: #1418276)
|
| |/
|
|
| |
Given by Abhishek. (LP: #1418276)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
if the email address already exists. Given by Andrew Stuart.
(LP: #1418280)
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* Switch away from a deprecated unittest method.
* Switch away from using deprecated Exceptions.message attribute.
* Decode the bytes b32 encoded X-Message-ID-Hash header into a Unicode.
* Fix a rather glaring bug in Pendings.add() where we were actually not
properly coercing bytes to unicode for the keys and values! I guess it's a
good thing that SQLAlchemy is more strict than Storm.
* Some cosmetic fixes.
|
| | |
|
| |
|
|
|
|
|
|
| |
* Remove an unused import.
* Add skips for all migration unit tests.
* Fix model class attribute typo.
* .values() returns tuples, so adjust for that.
* Add a test.
|
| | |
|
| |
|
|
|
|
|
|
| |
reflect this.
Also, mock out sys.stderr on some tests so that their nose2 output is quieter.
A few other minor coding style consistencies.
|
| |\ |
|
| |/ |
|
| |
|
|
| |
filters. Given by Aurélien Bompard. (LP: #1117174)
|
| |
|
|
|
|
|
| |
* handle_SubscriptionEvent(): We're always guaranteed to get a language from a
member, since lookup falls back ultimately to the system preferences. So
this method can be simplified.
* Bump up code coverage for several modules.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
* Rename StormBaseDatabase._create() -> .initialize()
* Refactor database initialization.
* make_listid() helper.
* Add a pivot() helper for schema migrations.
|
| |
|
|
| |
(LP: #1117176)
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
documentation. Move non-documentation tests into a separate unittest file.
* Separate out the doctests for IRequest from the doctests for
app/moderator.py and place the latter in a separate file.
* Fix typo in app/membership.py (s/send_goodbye_msg/send_goodbye_message), but
LP: #1091321 tracks more needed fixes in this area.
|
| |
|
|
| |
- Update many tests to use the transaction() context manager.
|
| |
|
|
|
| |
Also, change the implementation of mailing list REST resource's member_count
to use the more efficient implementation of IRoster.member_count.
|
| |
|
|
| |
unittests where they belong.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
automatically do the right thing in most cases. Keep test_suite() in
test_documentation.py since these dynamically set up docs tests properly.
Refactor test_passwords.py so that base class tests aren't bogusly run. Also,
remove test_membership.py which was essentially disabled because it was
testing the MM2 membership API.
|
| |
|
|
|
|
|
|
|
|
| |
lifecycle changes:
- DomainCreatingEvent - sent before the domain is created
- DomainCreatedEvent - sent after the domain is created
- DomainDeletingEvent - sent before the domain is deleted
- DomainDeletedEvent - sent after the domain is deleted
* Using the above events, when a domain is deleted, associated mailing lists
are deleted. (LP: #837526)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and exposed to the REST API as their integer equivalents. They are stored
in the database using Storm's UUID type.
- ISubscriptionService.get_member() now takes a UUID
- IUserManager.get_user_by_id() now takes a UUID
* Moderators and owners can be added via REST (LP: #834130). Given by
Stephen A. Goss.
- add_member() grows a `role` parameter.
- ISubscriptionService.join() grows a `role` parameter.
* InvalidEmailAddressError no longer repr()'s its value.
* `address` -> `email` for consistency
- delete_member()
- ISubscriptionService.leave()
* Fixed typo in app/subscriptions.py __all__
* AlreadySubscribedError: attributes are now public.
* More .txt -> .rst renames.
|
| |
|
|
|
|
|
|
|
|
|
| |
* Add ListCreatingEvent and ListDeletingEvent. These are sent before the
operation actually occurs, whereas the previously added ListCreatedEvent and
ListDeletedEvent are sent after the operation. Specifically, this is
necessary because request database deletion requires the IMailingList
object, which is only available before the list is deleted.
* Add a handler to clear out the requests database for a mailing list, when
the mailing list is about to be deleted.
|
| |
|
|
|
|
|
|
|
| |
* Use zope.events to signal when a mailing list has been created or deleted.
* Register a handler for the ListDeletedEvent which cleans up member
subscriptions.
* Relax the criteria for find_members(), both internally and in the REST API,
so that the subscriber is not required. E.g. you can now find all members
of a mailing list.
|
| | |
|
| |
|
|
|
|
|
| |
and over just the unprocessed events.
* In the outgoing queue runner, work out the logic for when
SomeRecipientsFailed with permanent failures in a probe message.
|