summaryrefslogtreecommitdiff
path: root/alot/utils
Commit message (Collapse)AuthorAge
* Replace Exception.message with str(Exception)Dylan Baker2017-08-19
| | | | | | In python3 Exception doesn't have a message attribute, the only way to get the string output is to call str() on the Exception. This also works in python 2.7, so go ahead and make that change.
* convert from pygpgme to the python "gpg" moduleDaniel Kahn Gillmor2017-08-14
| | | | | | | | | | | | | | | This converts from the now abandoned pygpgme project for wrapping gpgme, to the upstream gpgme python bindings (which are descended from the pyme project, before they became official). Largely this change should not be user visible, but there are a couple cases where the new bindings provide slightly more detailed error messages, and alot directly presents those messages to users. This patch has been significantly revised and updated by Dylan Baker, but was originally authored by Daniel Kahn Gillmor. Fixes #1069
* add BSD 3 point licence to werkzeug-helperPatrick Totzke2017-06-17
|
* conservative lookup of sub-completersPatrick Totzke2017-06-15
| | | | via cached properties
* alot/utils/argparse: Add a new argparse validators infrastructureDylan Baker2017-01-25
| | | | | | | | | | | | | This adds a new argparse.Action class validates input using a new keyword argument that takes a validator function. This will allow us to replace the use the type keyword as a validator, which is both more correct, and frees up the type keyword to do what it's actually meant to do, convert the input from one type to another. It also adds 3 new validator functions that will be enabled in the next commit. One that checks for a required file, one that checks for an optional directory, and one that looks for a required file, fifo, or block special device (/dev/null).
* utils/argparse.py: Various cleanupsDylan Baker2017-01-25
| | | | | Hide internal values from export and add a message to the TypeError raised by the if the argument isn't in _TRUISH or _FALSISH.
* move alot/settings/checks to alot/utils/configobjDylan Baker2017-01-25
| | | | This is just more reorganization.
* Move utils/booleanaction.py to utils/argparse.pyDylan Baker2017-01-25
| | | | | This module is going to be enhanced with additional components in later patches in this series, so it needs a more generic name.
* Use absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* cleanup: pep8/pyflakes fixesPatrick Totzke2012-09-09
|
* fix BooleanActionPatrick Totzke2012-06-16
| | | | | | apparently the __call__ method got lost on the way. Moreover the choices list must match the target type, so is useless here
* cleanup docstring for BooleanActionPatrick Totzke2012-06-14
|
* add copyright statements to all source filesPatrick Totzke2012-06-14
| | | | cf issue #472
* use metavar 'BOOL' for BooleanAction parametersPatrick Totzke2012-06-11
|
* add BooleanAction for argparsePatrick Totzke2012-06-11
This action allows to set a boolean flag via --foo=BAR, where BAR is y/n,true/false etc.