summaryrefslogtreecommitdiff
path: root/src/mailman/model
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge Aurélien Bompard's latest merge branch, with some cleaning up by Barry.Barry Warsaw2014-10-139-20/+28
| |\
| | * * remove migrate commandAbhilash Raj2014-10-109-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * fix database reset error due to foreign key constraint between user and ↵Abhilash Raj2014-10-091-1/+4
| |/ | | | | | | address tables
| * PostgreSQL support by Abhilash, cleaned by Barry.Barry Warsaw2014-09-273-7/+10
| |\
| | * Add support for postgresqlAbhilash Raj2014-09-254-9/+12
| |/ | | | | | | | | | | | | | | | | * revert changes in message_id_has encoding by barry * Change message_id_hash column to LargeBinary (from previously mistaken one i.e.unicode) * add missing import in database/types.py * fix a bug in database/Model.py, transaction has no method abort(), instead it is rollback()
| * Update some comments.Barry Warsaw2014-09-231-1/+4
| |
| * Use a simpler UUID implementation.Barry Warsaw2014-09-231-1/+1
| | | | | | | | Fix a typo.
| * Migrations will be replaced with Alchemy.Barry Warsaw2014-09-221-48/+0
| | | | | | | | | | | | We don't need the raw SQL schema stuff any more. We don't need the Version table any more.
| * Pass all tests with PYTHONWARNINGS=error.Barry Warsaw2014-09-224-24/+21
| | | | | | | | | | | | | | | | | | | | * Switch away from a deprecated unittest method. * Switch away from using deprecated Exceptions.message attribute. * Decode the bytes b32 encoded X-Message-ID-Hash header into a Unicode. * Fix a rather glaring bug in Pendings.add() where we were actually not properly coercing bytes to unicode for the keys and values! I guess it's a good thing that SQLAlchemy is more strict than Storm. * Some cosmetic fixes.
| * Clean up pass.Barry Warsaw2014-09-2220-143/+163
| |
| * Another test repair.Barry Warsaw2014-09-211-0/+2
| |
| * Test repair:Barry Warsaw2014-09-213-2/+12
| | | | | | | | | | | | | | | | * Remove an unused import. * Add skips for all migration unit tests. * Fix model class attribute typo. * .values() returns tuples, so adjust for that. * Add a test.
| * * remove some unused codeAbhilash Raj2014-09-197-7/+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
| * * fix the circular dependecy problem between User and AdressAbhilash Raj2014-09-193-5/+9
| | | | | | | | * fix almost all the errors relating to doctests
| * call roster methods on mailinglist object after load from databaseAbhilash Raj2014-09-182-11/+15
| |
| * all tests except for importer working(ignoring test_migrations.py)Abhilash Raj2014-09-182-2/+3
| |
| * fix all tests in mailman.model.testsAbhilash Raj2014-09-1314-119/+113
| |
| * change leftover queriesAbhilash Raj2014-09-134-6/+5
| |
| * modify all storm queries to work with SAAbhilash Raj2014-09-129-61/+55
| |
| * * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-0617-51/+61
| | | | | | | | * update some queries to match SA style
| * replace all storm types and relationships with sqlalchemyAbhilash Raj2014-09-0517-107/+142
| |
| * change models to use sqlalchemy models<WIP>Abhilash Raj2014-09-048-140/+147
|/
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-2818-159/+159
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* * Fix test isolation bug in ``languages.rst``.Barry Warsaw2014-04-171-5/+5
|\ | | | | | | [Piotr Kasprzyk] (LP: #1308769)
| * Make a copy before first usage of mgr.clear()Piotr Kasprzyk2014-04-161-4/+4
|/
* Add an email address to an existing user via the REST API.Barry Warsaw2014-04-142-1/+47
|\
| * Instantiating an Address model now validates the email stringFlorian Fuchs2014-04-142-1/+49
| |
* | Trunk mergeBarry Warsaw2014-04-1431-40/+233
|\|
| * * Fix IntegrityError (against PostgreSQL) when deleting a list with contentBarry Warsaw2014-03-152-0/+17
| | | | | | | | filters. Given by Aurélien Bompard. (LP: #1117174)
| * * Module coding style consistency.Barry Warsaw2014-03-022-5/+21
| | | | | | | | | | | | | | * handle_SubscriptionEvent(): We're always guaranteed to get a language from a member, since lookup falls back ultimately to the system preferences. So this method can be simplified. * Bump up code coverage for several modules.
| * Several internal improvements:Barry Warsaw2014-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New events: - ConfirmationNeededEvent is triggered when a pendable requiring confirmation is created. This allows us to define an event handler for this event which sends the user notification. - SubscriptionEvent is triggered when a member is added to a mailing list. This lets us define an event handler which sends the welcome message. * send_welcome_message() now takes a member parameter instead of an address, which lets us directly access the member's delivery mode and user display name (if the member has a user, which it might not in some cases). * Use the list id in the pendable record instead of the list name for robustness (the latter can change but the former is permanent). * Test more registration conditions. * In the bin/runner command line switch handling, default `verbose` to None instead of False. This makes it work better with nose's -E switch (log to stderr). * In call_api(), if a POST, PUT, or PATCH method is used and data is None, encode the empty dictionary; seems like the behavior of urlencode() has changed, so this is safer. * Fix style and pyflakes warnings.
| * Bump copyright years.Barry Warsaw2014-01-0130-30/+30
| |
| * More fixes.Barry Warsaw2013-11-261-1/+5
| |
| * Checkpointing.Barry Warsaw2013-11-254-47/+169
| |
| * Joanna's branchBarry Warsaw2013-10-271-4/+55
| |\
| | * Changes for enabling/disabling archivers.Joanna Skrzeszewska2013-09-081-4/+55
| | |
* | | Aurélien Bompard's import-from-2.1 branch, with cleanup and fixes.Barry Warsaw2014-04-143-0/+18
|\ \ \ | |/ / |/| |
| * | Content filter must be removed on list deletionAurélien Bompard2013-10-032-0/+17
| |/
* | trunk mergeBarry Warsaw2013-09-013-4/+3
|\|
| * Switch to PEP 435 enums from flufl.enums.Barry Warsaw2013-06-183-4/+3
| |
* | Migrate bounceevent.list_name -> bounceevent.list_idBarry Warsaw2013-09-013-8/+8
|/ | | | | | | * Rename StormBaseDatabase._create() -> .initialize() * Refactor database initialization. * make_listid() helper. * Add a pivot() helper for schema migrations.
* * Creation of lists with upper case names should be coerced to lower case.Barry Warsaw2013-03-062-0/+15
| | | | (LP: #1117176)
* Bump copyright years.Barry Warsaw2013-01-0129-29/+29
|
* Remove mailinglist.admin_member_chunksize.Barry Warsaw2012-12-301-1/+0
|
* Remove mailinglist.private_roster.Barry Warsaw2012-12-301-1/+0
|
* Remove unused columns mailinglist.subscribe_policy,Barry Warsaw2012-12-301-3/+0
| | | | mailinglist.unsubscribe_policy, mailinglist.subscribe_auto_approval.
* Remove mailinglist.send_reminders column too.Barry Warsaw2012-12-301-1/+0
|
* * The column `mailinglist.new_member_options` was unused, and has beenBarry Warsaw2012-12-301-2/+0
| | | | removed.
* Remove some leftovers.Barry Warsaw2012-12-291-3/+0
|
* Revert the addition of the mailinglist.style_name column, as well as theBarry Warsaw2012-12-291-4/+3
| | | | | | | | | | | | IMailingList.style_name attribute. The problem is, there's nothing to guarantee that only one style will get run, and there's no sense in keeping track of the last style applied. Also: * Remove ListManager.create()'s setting of .personalize and .display_name. These should be left to the styles. (There's no reason why only these two would be set here.) * Fix some typos.