summaryrefslogtreecommitdiff
path: root/src/mailman/rest/validator.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* New template system. Closes #249Barry Warsaw2016-07-161-1/+2
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* allow_none -> allow_blankBarry Warsaw2016-07-121-3/+3
|
* REST: allow setting a member's moderation_action to NoneAurélien Bompard2016-07-121-1/+4
|
* Clean up the rest directory.Barry Warsaw2016-03-251-16/+13
|
* Clean up the core directory.Barry Warsaw2016-03-241-2/+19
| | | | | | | mailman/core/errors.py is gone now. We had a duplicate base exception which now always comes from mailman/interfaces/errors.py. Obsolete/unused exceptions are remove. The other exceptions are moved to better locations.
* Super duper.Barry Warsaw2016-01-261-1/+1
| | | | | * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes.
* Refactor API contexts.Barry Warsaw2016-01-131-10/+2
| | | | | | Rather than sprinkle API version string tests all over the place, create an IAPI interface which encapsulates the differences between API 3.0 and 3.1, and arrange for this to be used to convert to and from UUIDs.
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-301-9/+18
| | | | | | | | | hex representations of a UUID, not the int representation. Also: * Some general code cleanup. * Fix issue 185 (REST server crash when subscribing a user without a preferred address).
* A better email validator which actually validates the email address.Barry Warsaw2015-04-151-1/+5
|
* Abhilash's fix for allowing singleton strings in REST interfaces that alsoBarry Warsaw2015-04-151-1/+3
| | | | accept lists of strings.
* Add lots of test for various bits of domain owners.Barry Warsaw2015-04-061-0/+9
| | | | | | | | | | A little refactoring of list_of_str() into list_of_strings_validator() which is now put in the validators.py module and used in several places. Python 3 super() style. Add some code and tests to catch <domain>/owners references when <domain> doesn't exist.
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-6/+2
|
* Two more REST tests passing.Barry Warsaw2014-12-151-1/+1
|
* Checkpointing.Barry Warsaw2014-11-301-1/+1
| | | | | | | | | | By using `six` I think I have most of the imports squared away. There's probably still uses of `unicode` built-ins that need fixing. The idea is to first get the test suite running (which it doesn't yet), and then to fix tests. There's a bug in lazr.config which requires us to patch it for now.
* Trunk merge.Barry Warsaw2014-11-021-1/+1
|\
| * Pass all tests with PYTHONWARNINGS=error.Barry Warsaw2014-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | * 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.
* | Complete the conversion from restish to falcon, modulo a clean up pass. AllBarry Warsaw2014-08-141-5/+1
| | | | | | | | REST tests pass. This requires an as yet unmerged internal change to falcon.
* | Port users and part of members.Barry Warsaw2014-08-131-2/+2
| |
* | Get addresses.rst, i.e. /<api>/addresses working.Barry Warsaw2014-08-121-1/+1
|/
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-1/+1
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Switch to PEP 435 enums from flufl.enums.Barry Warsaw2013-06-181-3/+7
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* * You can now PUT and PATCH on user resources to change the user's displayBarry Warsaw2012-09-221-0/+50
| | | | | | | | | | | | | | name or password. For passwords, you pass in the clear text password and Mailman will hash it before storing. Also: * Major refactoring of validators for PUT and PATCH. Pull the common logic out of configuration.py and put it in a PatchValidator class in helpers.py. Also move GetterSetter to helpers.py * Add new exception classes RESTError, UnknownPATCHRequestError, ReadOnlyPATCHRequestError. These are used in the PatchValidator. * Added Validator.update() which works nicely for PATCH and PUT.
* copybumpBarry Warsaw2012-01-011-1/+1
|
* * Preferences for addresses, users, and members can be accessed, changed, andBarry Warsaw2011-09-231-2/+9
| | | | | | deleted through the REST interface. Hierarchical, combined preferences for members, and system preferences can be read through the REST interface. (LP: #821438)
* * User and Member ids are now proper UUIDs. The UUIDs are pended as unicodes,Barry Warsaw2011-08-301-0/+15
| | | | | | | | | | | | | | | | | | 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.
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Ugly, ugly, ugly hack to enable the non-standard HTTP verb PATCH for partialBarry Warsaw2010-09-011-1/+6
| | | | | | resource updates. None of the lower components (well, except restish) actually allows us to extend things for PATCH in any kind of principled way. I am the Kludge King.
* Refactor, and add a missing import.Barry Warsaw2010-08-231-0/+94