| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
| |
SQLite doesn't not enforce foreign key constraints, but PostgreSQL does,
and without this fix, IntegrityErrors get raised.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
| |
* The REST API incorrectly parsed `is_server_owner` values when given
explicitly in the POST that creates a user. (Closes #136)
|
| |
|
|
|
| |
isn't linked, the address is linked to the new user. Given by Aurélien
Bompard.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
* Cleanups.
* Updates to domains and users.
* Allow is_server_owner to be PUT.
|
| |
|
|
| |
* add and remove owners using the address
|
| |\ |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
* 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
|
| |/
|
|
| |
Given by Abhishek. (LP: #1418276)
|
| |
|
|
| |
Found by Andrew Stuart. (LP: #1419519)
|
| | |
|
| | |
|
| |\ |
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |/
| |
| |
| | |
Fixes LP bug #1312884
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
| |
unnecessary changes are needed for upstream falcon to support restish-ish
traversal.
|
| |
|
|
| |
REST tests pass. This requires an as yet unmerged internal change to falcon.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
reflect this.
Also, mock out sys.stderr on some tests so that their nose2 output is quieter.
A few other minor coding style consistencies.
|
| | |
|
| | |
|
| |
|
|
| |
paginate decorator
|
| |
|
|
| |
This is related to LP: #1156529.
|
| | |
|
| | |
|