summaryrefslogtreecommitdiff
path: root/src/mailman/config
diff options
context:
space:
mode:
authorBarry Warsaw2011-04-04 14:32:17 -0400
committerBarry Warsaw2011-04-04 14:32:17 -0400
commit17887e4d1e56915647e1d395e18573db2b9ea3ba (patch)
tree8dc9f275e878539040ee25857593570aca1ec113 /src/mailman/config
parentcd18f50624f33a9556492168933d5fe088d51a04 (diff)
downloadmailman-17887e4d1e56915647e1d395e18573db2b9ea3ba.tar.gz
mailman-17887e4d1e56915647e1d395e18573db2b9ea3ba.tar.zst
mailman-17887e4d1e56915647e1d395e18573db2b9ea3ba.zip
More fleshing out of the users REST API.
* Add a 'uid factory' which allows us to return predictable unique ids for various testing purposes, e.g. user ids. This should work even in the case of cross-subprocess uid generation. * REST access to individual users, or the set of all users. * User objects now have a created_on attribute. * Users can be created through the web, but must have an email address. * Add a [devmode] 'testing' variable for communicating to qrunner subprocesses that we're running in testing mode. This allows us to coordinate factories and such in the qrunner processes. * layers.is_testing() for more consistent API. * Give AddressError a .address attribute for better diagnostics.
Diffstat (limited to 'src/mailman/config')
-rw-r--r--src/mailman/config/schema.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/config/schema.cfg b/src/mailman/config/schema.cfg
index 09f575459..188f1771c 100644
--- a/src/mailman/config/schema.cfg
+++ b/src/mailman/config/schema.cfg
@@ -134,6 +134,10 @@ enabled: no
# enabled. This way messages can't be accidentally sent to real addresses.
recipient:
+# This gets set by the testing layers so that the qrunner subprocesses produce
+# predictable dates and times.
+testing: no
+
[passwords]
# When Mailman generates them, this is the default length of member passwords.