summaryrefslogtreecommitdiff
path: root/src/mailman/model/uid.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
|
* Clean up the model and languages directories.Barry Warsaw2016-03-251-7/+2
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* More coverage.Barry Warsaw2015-12-291-2/+2
|
* Give the predictable ID factories similar APIs.Aurélien Bompard2015-12-261-2/+2
|
* * A new API is provided to support non-production testing infrastructures,Barry Warsaw2015-02-131-0/+17
| | | | | | | | | | | | allowing a client to cull all orphaned UIDs via ``DELETE`` on ``<api>/reserved/uids/orphans``. Note that *no guarantees* of API stability will ever be made for resources under ``reserved``. (LP: #1420083) Also: - Allow @dbconnection methods to be @staticmethods taking only one argument, the store to perform the query on.
* * When deleting a user via REST, make sure all linked addresses are deleted.Barry Warsaw2015-02-091-1/+1
| | | | 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-5/+1
|
* * remove migrate commandAbhilash Raj2014-10-101-1/+1
| | | | | | | | * remove alembic.cfg, move contents to schema.cfg * fix import errors in src/mailman/model/language.py * add indexes * change the previously wrong written tablename autoresponserecord * change alembic_cfg to use schema.cfg instead of alembic.cfg
* Clean up pass.Barry Warsaw2014-09-221-1/+2
|
* * remove some unused codeAbhilash Raj2014-09-191-1/+0
| | | | | | | * add left out documentation * remov super(<class>).__init__() calls in models as it was useless now. * remove schema_migrate func in mailman/database/base.py
* change leftover queriesAbhilash Raj2014-09-131-1/+1
|
* replace all storm types and relationships with sqlalchemyAbhilash Raj2014-09-051-4/+8
|
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* - Module modernatizations (print function).Barry Warsaw2012-04-221-6/+12
| | | | - Convert direct use of config.db global to use the @dbconnection decorator.
* copybumpBarry Warsaw2012-01-011-1/+1
|
* * User and Member ids are now proper UUIDs. The UUIDs are pended as unicodes,Barry Warsaw2011-08-301-5/+3
| | | | | | | | | | | | | | | | | | 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.
* Give IMembers a unique member id. We have to do this in order to give them aBarry Warsaw2011-04-221-0/+72
path at the root of the resource tree (i.e. /members/X) and because when members can be subscribed by their IUser record (for preferred address), their canonical location cannot contain the address they are subscribed with. When their preferred address changes (without otherwise touching their membership), this address will change and that's not good for a canonical location. Other changes: * Added IMember.member_id attribute * Added ISubscriptionService.get_member() so member records can be retrieve by member id. * We can now get individual members by id via the REST API. * Extend the UniqueIDFactory so that it can take a 'context' (defaulting to None). The context is only used in the testing infrastructure so that separate files can be used for user ids and member ids. Otherwise, we'd have gaps in those sequences. * When *not* in testing mode, ensure that UIDs cannot be reused by keeping a table of all UIDs ever handed out. We *should* never get collisions, but this ensures it. * Clean up mailman.sql