summaryrefslogtreecommitdiff
path: root/src/mailman/model/docs
diff options
context:
space:
mode:
authorAurélien Bompard2015-12-02 10:30:59 +0100
committerBarry Warsaw2015-12-16 11:04:25 -0500
commit30611aa0d445bc5e19ce37f6b01289f9cc2b7f0b (patch)
tree2bebcd25549b9f8200137f1c49483828d65a88ef /src/mailman/model/docs
parented9efb350c7629be2b8f1fe509c74e5dca6935f0 (diff)
downloadmailman-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.rst3
-rw-r--r--src/mailman/model/docs/requests.rst2
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