holger krekel
6c3a8448cf
Apply suggestions from code review
...
some fixes thanks to @adbenitez
Co-Authored-By: Asiel Díaz Benítez <asieldbenitez@gmail.com >
2020-04-13 17:39:31 +02:00
holger krekel
d4e1c1b109
refine handling of accepted contacts in example
2020-04-13 17:39:31 +02:00
holger krekel
a1d5120e58
sipmlify plugins and tests and remove superflous core event
2020-04-13 17:39:31 +02:00
holger krekel
724e1ea97e
simplify example
2020-04-13 17:39:31 +02:00
holger krekel
6f8067ffd3
address @adbenitez and @r10s comments
2020-04-13 17:39:31 +02:00
holger krekel
d66829702f
fix #164 add MEMBER_REMOVED event and member_removed plugin python hook
2020-04-13 17:39:31 +02:00
holger krekel
36b50436d7
add Message.mark_seen shortcut
2020-04-13 17:39:31 +02:00
holger krekel
d8e14d9993
refine example and make Contact accept Account object
2020-04-13 17:39:31 +02:00
holger krekel
f61b9f7964
add a test echo_and_quit examples
2020-04-13 17:39:31 +02:00
holger krekel
91cdc76414
refactor docs and ffi/high level event handling to pass all tests again
2020-04-13 17:39:31 +02:00
holger krekel
a1379f61da
fix up docs
2020-04-13 17:39:31 +02:00
holger krekel
a665d6de59
add chat.is_group() API to help callers avoid having to check with constants
...
deprecate get_type()
2020-04-13 17:39:31 +02:00
holger krekel
6a6a719ab6
shift pytest support code into deltachat package so deltabot can make use of the test infrastructure
2020-04-13 17:39:31 +02:00
holger krekel
84f17b7539
emit "DC_EVENT_MEMBER_ADDED" and python plugin event "member_added" for securejoin or non-securejoin additions of a contact to a chat. also fixup some docs
2020-04-13 17:39:31 +02:00
holger krekel
6213917089
start some docs
2020-04-13 17:39:31 +02:00
holger krekel
fb33c31378
fix a couple of issues wrt to configuring move/mvbox behaviour in tests
2020-04-13 17:39:31 +02:00
holger krekel
79f5e736b0
make eventlogger module a global plugin
2020-04-13 17:39:31 +02:00
holger krekel
0d4b6f5627
move io thread handling into own module
2020-04-13 17:39:31 +02:00
holger krekel
5c8f558f60
- simplify to offer start() and shutdown() as primary account methods, strike start_threads/stop_threads.
...
- introduce update_config(kwargs) method.
- group APIs a bit better
2020-04-13 17:39:31 +02:00
holger krekel
c851f9d5a3
simplify internal thread handling
2020-04-13 17:39:31 +02:00
holger krekel
2d74514dd0
add some incoming/outgoing message hooks
2020-04-13 17:39:31 +02:00
holger krekel
84012e760e
refine low level event handling
...
slight refactor on printing
2020-04-13 17:39:31 +02:00
holger krekel
6baef49f9d
add after_shutdown hook
2020-04-13 17:39:31 +02:00
holger krekel
f55d4fa73a
rename process_low_level_event to process_ffi_event
2020-04-13 17:39:31 +02:00
holger krekel
ce00c627d4
don't run Eventlogging by default -- the tests instantiate it, though.
2020-04-13 17:39:31 +02:00
holger krekel
d3c6f530e2
introduce global plugin manager
2020-04-13 17:39:31 +02:00
holger krekel
cf6391d51b
move event tracking to new tracker.py file
...
some api cleanups
2020-04-13 17:39:31 +02:00
holger krekel
57311d731e
simplify logging
2020-04-13 17:39:31 +02:00
holger krekel
95d45b386f
separate out FFI eventracking to only be used in running tests
2020-04-13 17:39:31 +02:00
holger krekel
bbc8bed39c
move temp_plugin to account
2020-04-13 17:39:31 +02:00
holger krekel
ec67b3975c
good bye global plugin manager ... we only do per-account object plugin_management for now
2020-04-13 17:39:31 +02:00
holger krekel
900a17fc00
another fix, thanks @adbenitez
2020-02-22 17:11:37 +01:00
holger krekel
78f36aaa0d
another bug fix
2020-02-22 17:11:37 +01:00
holger krekel
e064e02794
fix eventlogger
2020-02-22 17:11:37 +01:00
holger krekel
e22e5045f1
add missing file, some streamlining
2020-02-22 17:11:37 +01:00
holger krekel
087f35482b
factor out imex tracking
2020-02-22 17:11:37 +01:00
holger krekel
23ff5fea28
move towards pluggy
2020-02-22 17:11:37 +01:00
holger krekel
34347ccaf5
strike get_infostring
2020-02-22 17:11:37 +01:00
holger krekel
e704eb6cef
move eventlogging to own module, start distinguishing ll events
2020-02-22 17:11:37 +01:00
holger krekel
f6d71ed8ef
strike one Account parameter, always do eventlogging
2020-02-22 17:11:37 +01:00
Alexander Krotov
7368c01a8f
Add key_gen_type config option
2020-02-18 17:51:06 +01:00
Alexander Krotov
66d3440675
Update const.py
2020-02-18 11:58:11 +03:00
B. Petersen
c8a8dbbbae
adapt python bindings
2020-02-14 13:43:49 +01:00
Simon Laux
2e8409f146
address some of flubs comments
2020-02-14 11:28:55 +01:00
Simon Laux
ac4b2b9dfe
python bindings for archive and py tests
2020-02-14 11:28:55 +01:00
Simon Laux
5678562ce2
represent archivestate as enum
...
before it was a boolean, even though it is a 3 state
2020-02-14 11:28:54 +01:00
Floris Bruynooghe
e525c42c7d
Unmute should also raise exceptions
...
And tests should not care about return values.
2020-02-09 19:12:21 +01:00
Floris Bruynooghe
0242322d24
Tweak error halding a little
...
- Python should raise exceptions on error. Not return False.
- Negative durations are nonense.
- ChatID validity is already checked by the Rust API, let's not duplicate.
2020-02-09 18:01:42 +01:00
Simon Laux
afc9ed2274
fix python formatting
2020-02-09 12:36:37 +01:00
Simon Laux
5f4274b449
fix naming
2020-02-09 10:42:32 +01:00