summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/database.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 interfaces directory.Barry Warsaw2016-03-251-9/+4
|
* Happy New Year.Barry Warsaw2016-01-021-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
|
* DatabaseBarry Warsaw2014-11-011-10/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -------- * 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.
| * Since we don't have migrations, we don't need the ITemporaryDatabase stuff,Barry Warsaw2014-09-231-6/+0
| | | | | | | | | | nor do we need the TAG mechanism. We also don't need load_sql() or load_migrations().
| * Clean up pass.Barry Warsaw2014-09-221-1/+1
| |
| * * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-061-1/+1
|/ | | | * update some queries to match SA style
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* The final bit of refactoring puts the specifics of making a temporary databaseBarry Warsaw2012-07-251-13/+6
| | | | into the hands of the database modules, by using ZCA adapters.
* Refactor to better handling the difference between a testing database and aBarry Warsaw2012-07-251-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | production database. - Add an IDatabaseFactory interface with two named utility implementations. The initialization subsystem will either ask for the 'testing' or 'production' factory utility depending on whether we're in the test suite or not. The testing factory returns an IDatabase that can be _reset(). - initialize_2() now takes an optional `testing` argument, defaulting to False. The test ConfigLayer will pass in True. - Remove _reset() from the base database class. - The ModelMeta now adds a PRESERVE attribute to database classes. This defaults to False, meaning by default the test framework will reset the table. The Version table is preserved because it records the schema migrations. - Because of the above, we no longer need to support pre_reset() and post_reset() on migrations. Also, bin/mailman should allow the standard configuration file search algorithm to be used except when -C/--config is given.
* Checkpointing Postgres port of test suite.Barry Warsaw2012-07-231-0/+13
| | | | | | | | | - Refactor load_schema() into a separate load_sql() method. - Add API for test suite to make a temporary database. - Add code to migrate the PostgreSQL database. - Comment out `moderation_callback` from the PostgreSQL SQL; this must have snuck in accidentally via the contributed port. - Refactor test_migrations.py
* Update the IDatabase interface.Barry Warsaw2012-04-221-2/+5
|
* * Schema migrations have been implemented.Barry Warsaw2012-02-121-15/+0
|
* copybumpBarry Warsaw2012-01-011-1/+1
|
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Fix the obvious errors identified by pyflakes. Skip false positives (mostlyBarry Warsaw2010-10-081-1/+2
| | | | | due to _() interpolation) and a few other problems that did not have immediately obvious fixes.
* Happy New Year.Barry Warsaw2010-01-011-1/+1
|
* database/model reorganization. Model classes go in mailman.model. StockBarry Warsaw2009-10-101-7/+1
| | | | | database support goes in mailman.database. Move stuff out of mailman/database/__init__.py.
* As before, replace config.db.requests and config.db.pendings with utilities.Barry Warsaw2009-08-261-3/+0
|
* Replace the message_store instance on the database with an IMessageStoreBarry Warsaw2009-08-261-3/+0
| | | | utility.
* Remove the user_manager attribute from config.db and expose it as anBarry Warsaw2009-08-261-3/+0
| | | | IUserManager utility.
* Instead of using an adapter, use a utility to get the mailing list manager.Barry Warsaw2009-08-261-3/+0
|
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-251-0/+97
correctly regardless of how it's used.