Commit Graph

96 Commits

Author SHA1 Message Date
ef2d005957
Fix #1898 2021-12-11 16:32:54 +02:00
5771f21cfb
Added undeleteMessage function in helper_inbox & respective method in api.py and separated inbox & trash testcases 2021-12-02 19:11:38 +05:30
56ec5b8a03
Created testmode decorator & routed command decorator through it 2021-12-02 19:11:36 +05:30
21cb4e516d
Added testmode check for HandleclearUISignalQueue & HandleGetStatusBar functions, replaced sample_inbox_msg_receiver_address by sample_deterministic_addr4 2021-12-02 19:11:36 +05:30
9a194f0bae
Added statusBar, getAllInboxMessages, getAllInboxMessageIds, getInboxMessageById, getInboxMessagesByReceiver, trashMessage, trashInboxMessage & addSubscription, methods testcases & updated related functions 2021-12-02 19:11:35 +05:30
7702b33ac2
Updated code quality replaced unicode by decode function in api.py 2021-09-01 13:31:35 +05:30
0becc5bdeb
Updated code quality binary operator based changes in api.py 2021-08-11 21:26:15 +05:30
813492291816
a0e1c0041f
Add missing TTL to API sendMessage 2021-01-07 19:51:12 -05:00
navjot
4681d37377
validate address in insert method and improve test cases 2020-11-21 13:53:10 +05:30
navjot
61f7f32dfc
removed unused code and return ackdata from inset method insted of msgid 2020-11-21 13:53:10 +05:30
navjot
beaece254c
omitted unused code and optimized it 2020-11-21 13:53:10 +05:30
navjot
89254064f6
fixed default variables in insert method 2020-11-21 13:53:10 +05:30
navjot
a9e9f25b5d
change helper_sent.insert methods 2020-11-21 13:53:10 +05:30
813492291816
601158f6fb
add pendingDownload to return of API clientStatus 2020-11-21 01:00:11 +00:00
6b65113bb4
Added missing msgid in HandleGetInboxMessageById() query 2020-10-04 17:24:45 +03:00
380530c839
Experimental APIError codes table 2020-09-14 13:11:43 +03:00
ef5593b3d5
Formatted lines for PEP8, handled pylint warnings, added docstrings 2020-09-14 13:11:43 +03:00
3a8e842e60
Use encodingType arg in sendMessage and sendBroadcast API commands 2020-09-14 13:11:43 +03:00
5b07d2de30
httplib status codes constants in response 2020-09-14 13:11:43 +03:00
efff8f95ba
Prefix based command filter 2020-09-14 13:11:42 +03:00
06033ed96e
Fixed response for bad username or password and content-type header
(closes #244)
2020-09-14 13:11:42 +03:00
726986c1eb
Implemented JSON-RPC apivariant 2020-09-14 13:11:42 +03:00
6a089e0f88
Decoupled SimpleXMLRPCRequestHandler subclass
and added simple introspection
2020-09-14 13:11:42 +03:00
f4bf3bac2a
Used defusedxml to protect against XML vulnerabilities 2020-09-14 13:11:42 +03:00
2142888cbe
Inherited APIError from xmlrpclib.Fault.
From now on any errors are raised.
2020-09-14 13:11:42 +03:00
25abf66f1d
Reused _verifyAddress() in HandleDecodeAddress() 2020-09-14 13:11:41 +03:00
5925781b9a
Proper message for APIError 0 2020-09-14 13:11:41 +03:00
7cafe402be
Methods to form a dictionary for inbox and sent messages 2020-09-14 13:11:41 +03:00
45b0659e4c
Refactoring the API with metaclass and decorator 2020-09-14 13:11:35 +03:00
185ad66ea5
Moved most of variables from shared elsewhere (mostly to state) 2020-05-05 17:27:38 +03:00
lakshyacis
6f35da4096
Imported packages sequencing and formatting 2020-01-30 12:14:40 +05:30
lakshyacis
3211fca953
formatting and shorten line length 2020-01-22 15:55:26 +05:30
sandakersmann
9119507b03
Changed copyright year to 2020 2019-12-27 18:23:02 +01:00
bbdbca253b
Added warnings about changing port settings in api and network.tcp 2019-10-18 09:35:31 +03:00
7a89109fc9
New logging approach in order to reduce imports from submodules
and use logging without risk of circular import. Only subpackage
that imports from debug is bitmessageqt - because it also uses
debug.resetLogging().
Instead of from debug import logger is now recommended to use:

import logging

logger = logging.getLogger('default')

All subclasses of StoppableThread now have a logger attribute.
All threading related stuff except for set_thread_name()
was moved from helper_threading to network.threads.

Fixed two my mistakes from previous edit of debug in a1a8d3a:

 - logger.handlers is not dict but iterable
 - sys.excepthook should be set unconditionally
2019-10-18 09:35:24 +03:00
b5df242141
Fixed badly formatted docstrings and some wrong text 2019-10-18 01:06:02 +03:00
ad2a2b3fb4
Inherit helper_threading.StoppableThread from threading.Thread
and do random.seed() in its __init__
2019-08-06 18:07:19 +03:00
9992626438
Fix API command 'shutdown' 2019-08-01 12:04:13 +03:00
Marius Kjærstad
e0efb7fd2f
Merge branch 'v0.6' into v0.6 2019-03-23 15:14:56 +01:00
7e1ee815b9
Rerender more widgets when deleting address by API 2019-03-05 18:47:37 +02:00
sandakersmann
8924d4be5c
Changed copyright year to 2019 2019-02-05 15:16:30 +01:00
58bc170bda
Fix #1383 - formatting artifact in 7ed459b 2018-11-01 16:53:53 +02:00
5b1d2e56a1
Changes into test mode:
run in background, stop after 30 sec since last API response
2018-10-22 17:18:22 +03:00
coffeedogs
7ed459b644
Changes based on style and lint checks. (final_code_quality_6) 2018-10-18 19:46:01 +01:00
533df80ce9
Resolving pylint warnings 2018-10-12 11:58:02 +03:00
bd5bdda009
Moved class singleAPI to api module and import api below config check 2018-10-12 11:58:02 +03:00
cb0996c6c8
flake8: api, debug 2018-05-21 12:20:57 +03:00
f97ada87
71d6fad242
pep8 fix
line length fixed by cleaning up an error message
2018-05-06 11:06:44 +00:00
f97ada87
bcaad3e0fb
fix issue 1236
fixes regression introduced in PR #1062 affecting default and minimum lengths of ackdata objects
2018-05-05 12:38:05 +00:00
Mahendra Garg
6bce912a81
Fix undefined streamNumber bug 2018-04-10 12:44:32 +05:30