diff options
| author | Aurélien Bompard | 2015-12-02 10:30:59 +0100 |
|---|---|---|
| committer | Barry Warsaw | 2015-12-16 11:04:25 -0500 |
| commit | 30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b (patch) | |
| tree | 2bebcd25549b9f8200137f1c49483828d65a88ef /src/mailman/model/docs | |
| parent | ed9efb350c7629be2b8f1fe509c74e5dca6935f0 (diff) | |
| download | mailman-30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b.tar.gz mailman-30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b.tar.zst mailman-30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b.zip | |
Make sure that Pendables always have a type
Diffstat (limited to 'src/mailman/model/docs')
| -rw-r--r-- | src/mailman/model/docs/pending.rst | 3 | ||||
| -rw-r--r-- | src/mailman/model/docs/requests.rst | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/model/docs/pending.rst b/src/mailman/model/docs/pending.rst index 03eee3772..4accf5f3f 100644 --- a/src/mailman/model/docs/pending.rst +++ b/src/mailman/model/docs/pending.rst @@ -26,10 +26,9 @@ token that can be used in urls and such. >>> from mailman.interfaces.pending import IPendable >>> @implementer(IPendable) ... class SimplePendable(dict): - ... pass + ... PEND_TYPE = 'subscription' >>> subscription = SimplePendable( - ... type='subscription', ... address='aperson@example.com', ... display_name='Anne Person', ... language='en', diff --git a/src/mailman/model/docs/requests.rst b/src/mailman/model/docs/requests.rst index 1e1eba35a..ad892a18b 100644 --- a/src/mailman/model/docs/requests.rst +++ b/src/mailman/model/docs/requests.rst @@ -124,6 +124,7 @@ an additional key which holds the name of the request type. _request_type: held_message bar : no foo : yes + type : data Iterating over requests @@ -146,6 +147,7 @@ over by type. _request_type: held_message bar: no foo: yes + type: data Deleting requests |
