summaryrefslogtreecommitdiff
path: root/src/mailman/bin/runner.py
Commit message (Collapse)AuthorAgeFilesLines
* PR288 vettedBarry Warsaw2017-08-291-2/+0
|
* Convert to click for CLI optionsBarry Warsaw2017-07-221-103/+95
|
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-281-1/+1
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-1/+1
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Clean up the bin directory.Barry Warsaw2016-03-241-9/+4
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Documentation fixes, given by Abhilash Raj.Barry Warsaw2015-03-131-11/+10
|\
| * change bin/mailman to mailman everwhere in docsAbhilash Raj2015-03-121-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
|
* Make sure runner subprocesses get covered during `tox -e coverage`.Barry Warsaw2014-11-161-0/+6
|
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-3/+4
| | | | | | | | 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 the default.Barry Warsaw2014-01-061-2/+2
|
* 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-011-1/+1
|
* * `bin/runner` command has been simplified and its command line optionsBarry Warsaw2013-06-171-189/+102
| | | | | | | | | | | | | | | | | | | | | | | | reduced. Now, only one `-r/--runner` option may be provided and the round-robin feature has been removed. * Fixed REST server crash on `reopen` command. Identification and test provided by Aurélien Bompard. (LP: #1184376) Also: * bin/runner now uses standard argparse instead of ScriptOptions. * The entire bin/runner machinery has bee reorganized and simplified. There * is no more Loop class. Signal setting is moved directly into the base Runner class and overrided in specific subclasses (e.g. RESTRunner which must cleanly shutdown its TCPServer). The runner exit status is now set directly on the Runner instance. * Fixed a few minor style issues. * In order to cleanly shutdown the RESTRunner's WSGI server, we must start a subthread which only watches for an Event and then calls the server's shutdown() method. It has to be this way because the WSGI server itself (due to interactions with SQLite), and the signal handlers (due to Python's signal handling semantics) must both run in the main thread. However, the shutdown() must be invoked from a subthread in order to prevent deadlock. * Refactor the RESTLayer to eliminate duplication of code.
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* copybumpBarry Warsaw2012-01-011-1/+1
|
* Remove all pylint vestiges.Barry Warsaw2011-08-031-1/+0
|
* After a current analysis by Richard Wackerbarth, it was found that notBarry Warsaw2011-06-141-1/+2
| | | | | | | | | | | | including site-packages in the built-out environment is what was causing FreeBSD to fail to find the _sqlite module. As it turns out, the reason for adding this no longer appears relevant on Ubuntu, so just remove the setting. Fix a reference error in bin/runner.py Rename: * START.txt -> START.rst * README.txt -> README.rst
* Major terminology shift:Barry Warsaw2011-06-011-0/+289
* Queue runners are now called just 'Runners' since several of them don't manage queue directories. * Ban the term 'qrunner' too. * The master queue runner watcher should now just be called the 'master' or the 'master runner'. * bin/qrunner -> bin/runner * mailman.qrunner log file -> mailman.runner * master-qrunner.lck -> master.lck * master-qrunner.pid -> master.pid Also: * Remove some obsolete files * Begin the .txt -> .rst renaming