summaryrefslogtreecommitdiff
path: root/src/mailman/rest/users.py
Commit message (Collapse)AuthorAgeFilesLines
* Enforce a stricter coding style.Barry Warsaw2017-01-261-1/+1
|
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* Fix the Flake8 ignore tagsAurélien Bompard2016-11-211-1/+1
|
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-281-1/+1
|
* Better handling of the REST API plumbing.Barry Warsaw2016-06-281-9/+15
| | | | | | | | | * Add a version_info field which is a better way to do ordered comparisions of the API version. * All subresources now get their .api attribute set automatically, if they are passed back through the ObjectRouter. No more fiddling with context['api'] (unless of course, they don't make a roundtrip through the main ObjectRouter loop.
* Complete the port to Falcon 1.0.Barry Warsaw2016-04-021-3/+1
|
* Checkpointing.Barry Warsaw2016-04-021-11/+10
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-1/+1
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Clean up the rest directory.Barry Warsaw2016-03-251-19/+12
|
* Clean up the core directory.Barry Warsaw2016-03-241-3/+2
| | | | | | | 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.
* Refactor API differences into a separate class.Barry Warsaw2016-01-131-4/+5
| | | | | | | | | | | We now have an IAPI interface which defines methods to convert to/from UUIDs to their REST representations, and to calculate the API-homed full URL path to a resource. Add implementations API30 and API31 to handle the two different implementations so far. This also simplifies the various path_to() calls. Also: Add support for diff_cover to tox.ini to check that all differences against the master branch have full test coverage.
* Refactor API contexts.Barry Warsaw2016-01-131-36/+18
| | | | | | 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-16/+38
| | | | | | | | | 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).
* When deleting an Address, dependencies must be deleted firstAurélien Bompard2015-11-211-6/+0
| | | | | SQLite doesn't not enforce foreign key constraints, but PostgreSQL does, and without this fix, IntegrityErrors get raised.
* Rework pagination to fix the 'start' and 'total_size' valuesAurélien Bompard2015-11-041-5/+1
|
* Implement the REST API for <api>/owners.Barry Warsaw2015-09-231-0/+15
|
* * REST API version 3.1 introduced. Mostly backward compatible with versionBarry Warsaw2015-07-181-6/+7
| | | | | | 3.0 except that UUIDs are represented as hex strings instead of 128-bit integers, since the latter are not compatible with all versions of JavaScript.
* Fixes #136 on the 3.0 maintenance branch.Barry Warsaw2015-07-131-1/+1
| | | | | * The REST API incorrectly parsed `is_server_owner` values when given explicitly in the POST that creates a user. (Closes #136)
* * When creating a user via REST using an address that already exists, butBarry Warsaw2015-05-101-4/+15
| | | | | isn't linked, the address is linked to the new user. Given by Aurélien Bompard.
* Add lots of test for various bits of domain owners.Barry Warsaw2015-04-061-11/+38
| | | | | | | | | | 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.
* Checkpointing:Barry Warsaw2015-04-061-10/+15
| | | | | | * Cleanups. * Updates to domains and users. * Allow is_server_owner to be PUT.
* * implement left over methodsAbhilash Raj2015-04-061-13/+12
| | | | * add and remove owners using the address
* merge serverowner branchAbhilash Raj2015-03-271-5/+49
|\
| * all tests passing now (except doctests)Abhilash Raj2015-03-261-5/+19
| |
| * add domainowner and serverowner optionsAbhilash Raj2015-03-211-3/+33
| | | | | | | | | | | | * Add is_serverowner flag in User model and api * Add owner table for user-domain's many to many relationship * add owners subresource in domain's rest api
* | * When deleting a user object, make sure their preferences are also deleted.Barry Warsaw2015-03-201-1/+1
|/ | | | Given by Abhishek. (LP: #1418276)
* * When deleting a user via REST, make sure all linked addresses are deleted.Barry Warsaw2015-02-091-1/+5
| | | | Found by Andrew Stuart. (LP: #1419519)
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-7/+6
|
* Trunk merge.Barry Warsaw2014-12-221-26/+131
|\
| * * The address resource now has an additional '/user' sub-resource which canBarry Warsaw2014-12-081-22/+129
| |\ | | | | | | | | | | | | | | | | | | | | | be used to GET the address's linked user if there is one. This sub-resource also supports POST to link an unlinked address (with an optional 'auto_create' flag), and PUT to link the address to a different user. It also supports DELETE to unlink the address. (LP: #1312884) Given by Aurélien Bompard based on work by nicolask.
| | * REST feature: create a user from an existing addressAurélien Bompard2014-12-081-21/+119
| |/ | | | | | | Fixes LP bug #1312884
* | Lots of REST test fixes.Barry Warsaw2014-12-151-2/+2
| |
* | Checkpointing.Barry Warsaw2014-11-301-5/+7
|/ | | | | | | | | | 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.
* Make sure runner subprocesses get covered during `tox -e coverage`.Barry Warsaw2014-11-161-0/+1
|
* Minor cleanups.Barry Warsaw2014-08-151-2/+1
|
* Refactor so that most modules don't need to import falcon, and so fewerBarry Warsaw2014-08-141-40/+27
| | | | | unnecessary changes are needed for upstream falcon to support restish-ish traversal.
* Complete the conversion from restish to falcon, modulo a clean up pass. AllBarry Warsaw2014-08-141-4/+4
| | | | REST tests pass. This requires an as yet unmerged internal change to falcon.
* Port users and part of members.Barry Warsaw2014-08-131-43/+72
|
* Make preferences work.Barry Warsaw2014-08-131-1/+1
|
* Get addresses.rst, i.e. /<api>/addresses working.Barry Warsaw2014-08-121-4/+5
|
* 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
|
* Tweaks and fixes by Barry.Barry Warsaw2013-03-211-1/+1
|
* Removed unused `default_count` argument and remove one wrapping level in ↵Florian Fuchs2013-03-201-1/+1
| | | | paginate decorator
* REST API: Added pagination functionality to list, member and user collections.Florian Fuchs2013-03-201-1/+2
| | | | This is related to LP: #1156529.
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* Remove commented out pdb call.Barry Warsaw2012-12-261-1/+0
|