| Commit message (Collapse) | Author | Age |
| ... | |
| | | | |
|
| |\ \ \
| |/ /
|/| | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* ADD new bridgedb.translations module with the following methods:
- getFirstSupportedLang():
Essentially the same as the original HTTPServer.getAssumedChosenLang()
function, except that the determination of which languages are
supported uses _lang.getLangs() instead (this has been in the _lang
module for a long time, and was meant for that purpose).
- getLocaleFromHTTPRequest():
This is taken mostly from the original setLocaleFromRequestHeader()
(in the HTTPServer module) except that there was an extra function in
the EmailServer module, called getLocaleFromRequest() ― which was not
in use anywhere ― which included the parsing of '?lang=' HTTP GET/POST
arguments. The parsing of '?lang=' was taken from that function and
added to the original functionality of
setLocaleFromRequestHeader(). This fixes part of ticket #9678:
"'Select Language' button on bridges.tpo".
- getLocaleFromPlusAddr():
Exactly the same as the original in the EmailServer module.
- installTranslations():
Produces a gettext translation object, with fallback languages chained
to it in order of client preference.
- usingRTLLang():
Essentially the same as the original in the HTTPServer module, except
that the parsing of supported langs again uses the _lang.getLangs()
function, as above.
* FIXES part of #9678: "'Select Language' button to bridges.tpo"
|
| | | | |
|
| | | | |
|
| | | | |
|
| |/ /
| |
| |
| | |
Also fixes several PEP8 whitespace issues in test_HTTPServer.py.
|
| |\ \ |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
* REMOVES all mention of Vidalia.
* FIXES #10803
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| |/ / |
|
| | |
| |
| |
| | |
* ADD ascii-armoured keyfiles to templates/static/bridgedb.asc.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We can't log an IP address in a IP validation function which is used by
a log filter in `bridgedb.safelog`, because the log call made in the
validation function `bridgedb.parse.addr._isIPv()` will call the filter,
which will call the validation function, which will call the logger,
which will call the filter…
|
| | | |
| | |
| | |
| | | |
* FIXES #9875 Write tests for BridgeDB's logger
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* MOVE `Main.configureLogging()` → `util.configureLogging()`.
* CHANGE `configureLogging()` function to use
`logging.config.dictConfig()` with automatic safelogging filters
from `bridgedb.safelog` module.
* ADD `util._getRotatingFileHandlers()` function for chmod/chown'ing
the rotated log files to be readable only by the running process
owner.
* ADD `util.JustifiedLogFormatter` class for justified printing of log
messages when the config options LOG_TRACE and LOG_THREADS are
enabled (this extra information is then printed in justified columns
on the left, leaving the actual log messages left-justified to the
same width on the right, which in my opinion is much easier to read
quickly).
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* MOVE util.safe_logging → safelog.safe_logging.
* MOVE util.set_safe_logging → safelog.setSafeLogging
* MOVE util.logSafely → safelog.logSafely
* REMOVE manual calls to `logSafely()` for values which are
automatically scrubbed.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Include automatic filters for email addresses and IPv4/6
addresses. Things such as bridge fingerprints will still need to be
manually scrubbed by calling `bridgedb.safelog.logSafely()`.
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* ADD several new config options:
- LOG_THREADS:
adds the thread name and id, if available, to log messages.
- LOG_TRACE:
log the line number, module name, and function name where the log
call was made.
- LOG_TIME_FORMAT:
Useful for when you don't need to be told that it's Feb 11th over
and over again.
|
| |\ \ |
|
| |/ /
| |
| |
| | |
* FIXES #11346 add homepage link to BridgeDB HTTPS distributor.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
* ADD unittest will raise a ValueError during decryption with the
previous commit's code.
* ADD exception handling to `captcha.GimpCaptcha.check()` to cover
this case.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* CHANGE relevant unittests which looked for the original ';' string
delimiter to now split challenge string, taking the first 20 bytes as
the HMAC, and the rest as the encrypted blob containing the HMAC
answer.
* CHANGE `bridgedb.captcha.GimpCaptcha.check()` to always immediately
return False whenever any Exception occurs.
* ADD eight new unittests for `captcha.GimpCaptcha.check()`.
|
| | |
| |
| |
| |
| |
| |
| | |
* FIXES an non-deterministic, intermittent failure in the
`test_captcha.GimpCaptchaTests.test_createChallenge_hmacValid`
unittest do to returned HMAC values having different raw bytes
depending on the binary representation and the encoding used.
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
* FIX the "Type the two words" alt text by changing it to "Type the
word".
* CHANGE the "I am human" button to say "Submit".
|
| | | |
|
| | | |
|