8df120a09c
Suppressed pylint relative-import and pycodestyle E402 in depends
2019-11-18 15:06:27 +02:00
5848015d1d
Explicitly set wordWrap property to false in STableWidgets
...
on tabs "Send", "Blacklist" and "Network Status":
in qt5 it's probably true by default.
2019-11-18 15:06:27 +02:00
b2a3647be7
PyQt5 based qtpy fallback
2019-11-18 15:06:27 +02:00
7364824aee
TimestampRole == 33 for timestamp data in myTableWidgetItem
2019-11-18 15:06:27 +02:00
2445b71b20
Handled pylint warnings in bitmessageqt, qidenticon, depends,
...
resolved pylint redefined-variable-type warnings,
marked autogenerated modules for skipping by pylint and flake8
2019-11-18 15:06:27 +02:00
272ee2da8b
Changed check_pyqt() to work with qtpy ( closes #897 )
2019-11-18 15:06:27 +02:00
1740b99492
QWheelEvent.orientation() is obsolete, used angleDelta() instead
2019-11-18 15:06:27 +02:00
284a915976
Minor style changes:
...
- removed list <-> set conversion in __init__
- tuples instead of lists if changes aren't needed
- removed unnecessary variable redefinition in utils
- rewrote languagebox module a bit
- minor change in MyForm.rerenderAddressBook
2019-11-18 15:06:26 +02:00
326998953d
fromAddress - str, subject - unicode
...
(for simple encoding like for extended)
2019-11-18 15:06:26 +02:00
567386f7c2
Instantiate QFont only when it's needed
2019-11-18 15:06:26 +02:00
58b752127d
QComboBox.findData() compatible with pyside
2019-11-18 15:06:26 +02:00
aa7ba6e278
Sorted things out with validation of NewChanDialog
2019-11-18 15:06:26 +02:00
9e6780749b
No more arg() call on result of _translate()
2019-11-18 15:06:26 +02:00
9a2e91f616
Prevent str -> unicode conversion of inventoryHash
2019-11-18 15:06:26 +02:00
42ee308bd8
Better formatting of connections table header
2019-11-18 15:06:25 +02:00
7ddf060d1d
This version of tr._translate is probably compatible with all Qt APIs
2019-11-18 15:06:25 +02:00
a63f2b39a9
Module support rewrite:
...
- removed _translate calls except for address labels
- added Qt API string into support request
2019-11-18 15:06:25 +02:00
7c84077210
Changes for pyside:
...
customwidgets in ui-files and QtGui.QPen instantiation
2019-11-18 15:06:24 +02:00
8aa020fc37
Remove unicode() calls in safehtmlparser, ocassional flake8
2019-11-18 15:06:24 +02:00
ea33199dbd
Initial support for PyQt5 (main window shown) using QtPy package.
...
QtPy is a compatibility layer which allows to use the code written for
PyQt5 with any python Qt binding: PyQt4, PyQt5, pyside or pyside2.
Main differences in PyQt5:
- all widget classes are now in QtWidgets package, not QtGui;
- QString obsoleted by unicode (sip API 2);
- changed the way of signals connection.
2019-11-18 15:06:24 +02:00
2a165380bb
Restrict outbound connections on network groups
...
Logic borrowed from bitcoin, see CNetAddr::GetGroup() in src/netaddress.cpp
Simplified, so may not work fully identically but for our purposes it's good
enough. Won't connect to more than one host from a /16 subnet on IPv4 and a /32
subnet on IPv6.
2019-11-18 12:20:29 +01:00
bug Lady
7e1f1d2604
fix 'true' not True
...
else error
2019-11-14 13:32:15 +01:00
35a2962552
Fixed misleading comment about receiveDataThreads in queues
2019-11-11 17:13:20 +02:00
c40c70f807
Marked variables comments in defaults for use in doc.
...
Allowed autodoc in bitmessagemain, class_objectProcessor, defaults:
seems safe now.
Changed docs conf: don't sort module members, treat any string
inside backticks as :obj:.
2019-11-11 17:13:20 +02:00
d6c1845b71
Moved Peer from state to network.node
...
and trustedPeer to network.connectionpool.BMConnectionPool attribute
2019-11-11 17:13:12 +02:00
388de96495
Alphabetical internal import order in bitmessagemain
2019-11-11 12:03:04 +02:00
0967f03b40
addresses: raise varintEncodeError in encodeVarint()
...
instead of SystemExit (looks like a bug)
2019-11-11 12:03:04 +02:00
7a1f803c92
network.BMConnectionPool: added shortcuts connections()
...
and establishedConnections(), some formatting fixes
2019-11-11 12:03:04 +02:00
4d8d9b169f
Moved ObjectProcessorQueue to queues, added some doc
2019-11-11 12:03:04 +02:00
341651973a
Reduced imports:
...
- exported from network package all objects used outside;
- made all threads available in threads module.
Wrote some module docstrings.
2019-11-11 12:03:03 +02:00
bug Lady
061a9ef973
fix typos
...
and flesh out placeholder
2019-11-10 04:07:50 +01:00
lakshyacis
58e5fac6d7
tr quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
fda5d23c2d
state quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
b9ad6a3bac
singleinstance quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
503d0b33d0
shutdown quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
6f91ba1b33
shared quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
27be035e51
paths quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
cacac00e21
openclpow quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
1181db66e0
l10n quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
afce500085
knownnodes quality fixes
2019-10-31 14:52:43 +05:30
lakshyacis
ee5be28179
helper_threading quality fixes
2019-10-29 11:45:51 +05:30
1a7ef791e5
message_data_reader is obsolete
2019-10-28 09:14:48 +02:00
George McCandless
f871cd450c
Add test for 'onionservicesonly' mode.
...
Credit to Dmitri Bogomolov in commit 557a8cc6d2bec881b8a3c531d3f725460ed515f5.
2019-10-24 19:35:32 +00:00
George McCandless
b42f536d23
Add a checkbox to the network settings tab that allows restricting outbound connections to onion services (i.e., hosts that end with '.onion').
2019-10-21 00:03:41 +00:00
f0b4e4ded4
Replaced logging.getLogger() in other possible places
2019-10-18 09:35:31 +03:00
a48b51721d
Test new logging approach, both debug.logger and resetLogging
2019-10-18 09:35:31 +03:00
bbdbca253b
Added warnings about changing port settings in api and network.tcp
2019-10-18 09:35:31 +03:00
d2a896697d
Used logger.isEnabledFor() to prevent unneeded calculations
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
c63ed02153
Minimal changes to document Singleton and class definitions it wraps
2019-10-18 01:06:03 +03:00