summaryrefslogtreecommitdiff
path: root/alot/addressbook
Commit message (Collapse)AuthorAge
* Cosmetics, clean up importsAnton Khirnov2021-02-10
|
* addressbook/external: stop using call_cmd()Anton Khirnov2021-01-26
| | | | | | | It does not actually save any code. The new code also uses a shell as is documented. Remove call_cmd(), as it no longer has any callers.
* Use super() where applicable.Anton Khirnov2021-01-21
|
* remove old new-style classes syntaxPatrick Totzke2019-05-27
| | | | | | Python3 only supports "new-style" classes (those extending object), and we don't need to explicitly inherit from this root class any more. See http://pylint-messages.wikidot.com/messages:c1001
* addressbook: add logging statementsMatthieu Coudron2019-02-06
| | | | to help troubleshoot problems
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* Allow regex special characters in tagstrings.Julian Mehne2017-12-02
| | | | | | | | | | | | | | | Fixes the following crashes: 1. tag completion with regex special chars :search tag:[<tab> 2. Changing tag representation of an (existing) tag with regex special chars: [tags] [[my**tag]] normal = '','', 'white','light red', 'white','#d66' 3. Contact completion with regex special chars and no external command: To:**foo<tab>
* pep8 fixesPatrick Totzke2017-09-01
| | | | | This mostly shortens lines down to <=79 chars and fixes some other small things I found using the pep8 tool.
* Exclude two methods from coverage reportLucas Hoffmann2017-07-17
| | | | | | | One is an abstract method anyways and the other one is trivial. It just calls two other functions that are already covered by tests. This results in 100% test coverage for alot/addressbook/*.
* Compile regex outside of for loopLucas Hoffmann2017-07-06
|
* Remove broad exceptLucas Hoffmann2017-07-06
| | | | | The protected code only calls re.match and list.append so it should never fail (and if it still fails it should not be silenced).
* Correct membership testLucas Hoffmann2017-06-08
|
* Use absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* Use abc module to signal abstract base classesDylan Baker2016-12-21
| | | | | | | | | | | | | The Completer class is abastract, and it's complete method is also abstract. Using ABCMeta achieve two thing, first it will cause an error if a developer doesn't overwrite the method in a subclass. And second that it tells the static analysis tools to ignore the unused arguments in the signature, since this is the definition of a signature, not an actual function. By the same logic addressbook.AddressBook, and account.Account have been extended to use ABCMeta as their metaclass and have had their abstract methods decorated with the abstract method attribute.
* Fix typo in docstringLucas Hoffmann2016-12-14
|
* Remove braces after `del` and `return`Lucas Hoffmann2016-12-09
| | | | | `del` and `return` are keywords and not functions so the braces are not needed.
* alot/addressbook/abook.py: fix DEFAULTSPATH to account for code movement in ↵Johannes 'josch' Schauer2016-01-31
| | | | commit 2f064af
* Fix docstring for alot.addressbook.AddressBook.Lucas Hoffmann2016-01-25
| | | | | The name of the referenced class was changed in 637b679003b353d2630fed8ca942f3ab522e68b5.
* fix: dont overwrite default re-flag 0 with NonePatrick Totzke2015-04-15
| | | | issue #764
* refactor MatchSdtoutAddressbookPatrick Totzke2015-04-15
| | | | | | The class is now called ExternalAddressbook and makes it optional to call the external command with the given search string as parameter when looking up addresses
* refactor addressbook codePatrick Totzke2015-04-15