summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/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
|
* New template system. Closes #249Barry Warsaw2016-07-161-24/+1
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Import order flake8 plugin.Barry Warsaw2016-03-271-1/+1
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the interfaces directory.Barry Warsaw2016-03-251-14/+8
|
* Clean up the core directory.Barry Warsaw2016-03-241-1/+1
| | | | | | | 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.
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Abhilash's fix for allowing singleton strings in REST interfaces that alsoBarry Warsaw2015-04-151-1/+1
| | | | accept lists of strings.
* Flesh out the domain interface, model, and tests. Clean up style.Barry Warsaw2015-04-061-4/+5
|
* * implement left over methodsAbhilash Raj2015-04-061-2/+2
| | | | * add and remove owners using the address
* * Add `drop_column` inside sqlite check, fix indentationAbhilash Raj2015-03-311-2/+2
| | | | | | | | * 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-8/+5
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-3/+0
|
* DatabaseBarry Warsaw2014-11-011-3/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -------- * The ORM layer, previously implemented with Storm, has been replaced by SQLAlchemy, thanks to the fantastic work by Abhilash Raj and Aurélien Bompard. Alembic is now used for all database schema migrations. * The new logger `mailman.database` logs any errors at the database layer. API --- * Several changes to the internal API: - `IListManager.mailing_lists` is guaranteed to be sorted in List-ID order. - `IDomains.mailing_lists` is guaranteed to be sorted in List-ID order. - Iteration over domains via the `IDomainManager` is guaranteed to be sorted by `IDomain.mail_host` order. - `ITemporaryDatabase` interface and all implementations are removed.
| * Merge in the last of Aurelien's changes, and make the test suite pass withBarry Warsaw2014-10-311-1/+4
| | | | | | | | PostgreSQL.
| * Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-0/+2
|/
* 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
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* copybumpBarry Warsaw2012-01-011-1/+1
|
* * Four new events are created, and notifications are sent during domainBarry Warsaw2011-09-021-0/+32
| | | | | | | | | | 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/+3
|\ | | | | | | | | all the mailing lists in a specific domain (LP: #829765). Given by Stephen A. Goss.
| * merged changes to main branchStephen A. Goss2011-08-231-19/+19
| |\ | |/ |/|
| * some tweaks to fix for LP: 829765 based on feedbackStephen A. Goss2011-08-231-0/+2
| |
* | Rename IDomain.email_host to .mail_host for consistency. Similarly in theBarry Warsaw2011-08-221-19/+19
|/ | | | REST API. (LP: #831660)
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Fix the obvious errors identified by pyflakes. Skip false positives (mostlyBarry Warsaw2010-10-081-1/+0
| | | | | due to _() interpolation) and a few other problems that did not have immediately obvious fixes.
* Access mailing list configuration via RESTBarry Warsaw2010-08-101-0/+3
| | | | | | | | | | * 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.
* * Make the lists.txt doctest pass with restish.Barry Warsaw2010-02-231-0/+4
| | | | | * Put the domain name on the BadDomainSpecificationError * Give the IListManager an __iter__()
* Rip out lazr.restful and replace it with restish. This simpifies a lot of theBarry Warsaw2010-02-231-72/+11
| | | | | REST architecture, at the expense of a few features, and less support. So far so good though.
* 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-9/+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.
* Factor out most of the i18n subsystem and convert to using the flufl.i18nBarry Warsaw2009-11-151-1/+1
| | | | package.
* Whitespace cleanupBarry Warsaw2009-08-051-1/+0
|
* Move BadDomainSpecificationError to domain.txt interface. Try to set this toBarry Warsaw2009-07-261-1/+10
| | | | | | return an HTTP 400 error, though it does not seem to work. Expose list creation through the API.
* Our first writable REST API! You can now create new domains through theBarry Warsaw2009-07-201-1/+25
| | | | | | | | | webserver. Fix the https/http urls. Add the adapter for HTTPCharsets so POSTs work properly. Nice little cargo cult from lazr.restful.
* Wow. Put domains into the database.Barry Warsaw2009-07-161-3/+74
| | | | | | | | Add an IDomainManager and a global domain manager which can be gotten by adapting the global config object. Add an IDomainCollection interface for exposing the domain manager onto the API.
* Clean a few more lints.Barry Warsaw2009-07-101-2/+6
| | | | | | | | | | | | | | Add get_mailing_lists() which is used just for the web interface. Because of a bug in lazr.restful, this cannot be a generator. Similar change in IDomainSet. Instrument IListManager to be vended through the api. The REST server must be run in a separate process since SQLite does not like objects created in one thread to be used in another thread. Note that this breaks the domain.txt test, but domains really need to be in the database anyway.
* More REST server updates.Barry Warsaw2009-06-291-27/+43
| | | | | | | * Get rid of in-Python adapter registration in favor of ZCML. Eventually, I'd like to get rid of the ZCML. * Set the view_permission to None, but it's still not right. * Add IDomainSet and an adapter from Configuration to IDomainSet.
* Hook in lazr.restful (which isn't in the Cheeseshop yet).Barry Warsaw2009-04-011-1/+1
| | | | | | | Add infrastructure that the first REST interface will use, i.e. providing the Mailman and Python versions. Update bin/version
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-251-0/+85
correctly regardless of how it's used.