summaryrefslogtreecommitdiff
path: root/src/mailman/model/domain.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
|
* MySQL is now an officially supported database.Barry Warsaw2016-07-291-3/+4
| | | | Given by Abhilash Raj.
* New template system. Closes #249Barry Warsaw2016-07-161-30/+3
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Tweak the import rules checker.Barry Warsaw2016-03-271-1/+1
| | | | Fix the last few violations of the import rules.
* Import order flake8 plugin.Barry Warsaw2016-03-271-1/+1
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the model and languages directories.Barry Warsaw2016-03-251-6/+4
|
* First massive round of cleanups.Barry Warsaw2016-03-231-8/+5
| | | | | | | | * Get rid of explicit __all__ settings and use the @public decorator. * Get rid of ^L's * Use expected_count argument for get_queue_messages() * Various code modernizations. * Other minor changes to make flake8 happy.
* Several optimizations:Barry Warsaw2016-01-111-5/+2
| | | | | | | | | | | | * Use `yield from` wherever appropriate. * Use SA's .one_or_none() where appropriate. - Fix a bug in MailingList.pass_extensions. - Use ValueError in other places for consistency. - Remove unreached/nonsense code. - Simplify the SubscriptionService.find_member() and .find_members() implementations. - Boost coverage.
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Flesh out the domain interface, model, and tests. Clean up style.Barry Warsaw2015-04-061-17/+23
|
* * implement left over methodsAbhilash Raj2015-04-061-12/+20
| | | | * add and remove owners using the address
* * Add `drop_column` inside sqlite check, fix indentationAbhilash Raj2015-03-311-14/+11
| | | | | | | | * Change `Owner` to `DomainOwner` * Fix indentation errors in docs * add multiple owners using `add_owners` * all dummy addresses should be using example.com, example.org to avoid conflict ever * add dummy tests
* add tests, fix docs, remove contact_addressAbhilash Raj2015-03-281-4/+11
|
* all tests passing now (except doctests)Abhilash Raj2015-03-261-2/+2
|
* add domainowner and serverowner optionsAbhilash Raj2015-03-211-15/+24
| | | | | | * 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
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-1/+1
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-3/+0
|
* Checkpointing.Barry Warsaw2014-11-301-5/+4
| | | | | | | | | | 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.
* Merge in the last of Aurelien's changes, and make the test suite pass withBarry Warsaw2014-10-311-1/+2
| | | | PostgreSQL.
* Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-2/+2
|
* Clean up pass.Barry Warsaw2014-09-221-1/+1
|
* fix all tests in mailman.model.testsAbhilash Raj2014-09-131-2/+1
|
* * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-061-5/+5
| | | | * update some queries to match SA style
* replace all storm types and relationships with sqlalchemyAbhilash Raj2014-09-051-1/+2
|
* change models to use sqlalchemy models<WIP>Abhilash Raj2014-09-041-5/+6
|
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* General code cleanup.Barry Warsaw2012-04-251-5/+3
| | | | | | | | - Add explicit dependency on zope.event in setup.py. - Use Python 3 compatible syntax for specifying that a class implements an interface, i.e. the @implementer class decorator. - print_function futures. - Whitespace normalization.
* - Module modernatizations (print function).Barry Warsaw2012-04-221-16/+24
| | | | - Convert direct use of config.db global to use the @dbconnection decorator.
* copybumpBarry Warsaw2012-01-011-1/+1
|
* * Four new events are created, and notifications are sent during domainBarry Warsaw2011-09-021-1/+8
| | | | | | | | | | lifecycle changes: - DomainCreatingEvent - sent before the domain is created - DomainCreatedEvent - sent after the domain is created - DomainDeletingEvent - sent before the domain is deleted - DomainDeletedEvent - sent after the domain is deleted * Using the above events, when a domain is deleted, associated mailing lists are deleted. (LP: #837526)
* * New REST resource http://.../<domain>/lists can be GETed in order to findBarry Warsaw2011-08-301-0/+10
|\ | | | | | | | | all the mailing lists in a specific domain (LP: #829765). Given by Stephen A. Goss.
| * email_host => mail_hostStephen A. Goss2011-08-231-1/+1
| |
| * merged changes to main branchStephen A. Goss2011-08-231-26/+26
| |\ | |/ |/|
| * some tweaks to fix for LP: 829765 based on feedbackStephen A. Goss2011-08-231-0/+9
| |
* | Rename IDomain.email_host to .mail_host for consistency. Similarly in theBarry Warsaw2011-08-221-26/+26
|/ | | | REST API. (LP: #831660)
* Remove all pylint vestiges.Barry Warsaw2011-08-031-2/+0
|
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Access mailing list configuration via RESTBarry Warsaw2010-08-101-0/+6
| | | | | | | | | | * last_post_time -> last_post_at * protocol -> scheme * creation_date _> created_at * last_post_time -> last_post_at * Add an extended JSON encoder for datetimes * Be sure to initialize convert_html_to_plaintext and filter_content in the default style.
* Happy New Year.Barry Warsaw2010-01-011-1/+1
|
* IRegistrar is now a utility; it doesn't need to be adapted from an IDomain.Barry Warsaw2009-12-121-4/+0
| | | | | | | This is because registration confirmation messages must come from the mailing list that the subscription request came from. Remove IDomain.confirm_address() since this lives only on the IMailingList now.
* * Refactor the language manager off of the config object and into a utility.Barry Warsaw2009-12-101-10/+6
| | | | | | | | * Fix a few small typos in exception handlers. * Move the initialization of the Zope Component Architecture into the first initialization step. The only reason we couldn't do that previously was because the domain object referenced the config, causing a circularity problem. Refactor the Domain implementation to avoid that.
* * Make IDomainManager a utility, since the config object is global.Barry Warsaw2009-12-081-7/+3
| | | | | | | | * Give IMailingList a .domain attribute which looks up the IDomain for its .host_name. This cleans up a lot of code. * Add a test for the 'confirm' email command. * Suppress blank lines in email command responses. * Make the IDomainCollection a utility.
* database/model reorganization. Model classes go in mailman.model. StockBarry Warsaw2009-10-101-0/+163
database support goes in mailman.database. Move stuff out of mailman/database/__init__.py.