~abompard/mailman/bug-1312884

« back to all changes in this revision

Viewing changes to src/mailman/interfaces/listmanager.py

  • Committer: Barry Warsaw
  • Date: 2014-11-01 16:49:15 UTC
  • mfrom: (7251.1.38 abhilash)
  • Revision ID: barry@list.org-20141101164915-06wqfmya6wf47n6n
Database
--------
 * 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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    ]
32
32
 
33
33
 
 
34
from mailman.interfaces.errors import MailmanError
34
35
from zope.interface import Interface, Attribute
35
36
 
36
 
from mailman.interfaces.errors import MailmanError
37
 
 
38
37
 
39
38
 
40
39
class ListAlreadyExistsError(MailmanError):
130
129
        """
131
130
 
132
131
    mailing_lists = Attribute(
133
 
        """An iterator over all the mailing list objects managed by this list
134
 
        manager.""")
 
132
        """An iterator over all the mailing list objects.
 
133
 
 
134
        The mailing lists are returned in order sorted by `list_id`.
 
135
        """)
135
136
 
136
137
    def __iter__():
137
138
        """An iterator over all the mailing lists.