summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | Split unittests for EmailServer.getMailResponse() into smaller tests.Isis Lovecruft2014-04-17
| | |
* | | Merge branch 'fix/7550-9678-interactive-translations' into developIsis Lovecruft2014-04-17
|\ \ \ | |/ / |/| |
| * | Add unittests for new bridgedb.translations module.Isis Lovecruft2014-04-16
| | |
| * | Move locate determination and translation code into separate module.Isis Lovecruft2014-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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"
* | | Update docstring for I18n._().Isis Lovecruft2014-04-16
| | |
* | | PEP8; change geoipdb → GEOIP_DBFILE.Isis Lovecruft2014-04-16
| | |
* | | PEP8; change template_root → TEMPLATE_DIR.Isis Lovecruft2014-04-16
| | |
* | | Fix issue with transport URL params in HTTPServer unittests.Isis Lovecruft2014-04-16
|/ / | | | | | | Also fixes several PEP8 whitespace issues in test_HTTPServer.py.
* | Merge branch 'fix/10803-remove-vidalia-update-options' into developIsis Lovecruft2014-04-14
|\ \
| * | Fix unittest failures for test_HTTPServer due to template string changes.Isis Lovecruft2014-04-14
| | |
| * | Add explanation text for using bridges with TBB.Isis Lovecruft2014-04-14
| | | | | | | | | | | | | | | * REMOVES all mention of Vidalia. * FIXES #10803
| * | Rewrite options.html template.Isis Lovecruft2014-04-14
| | |
| * | Add accesskey to "get bridges" link.Isis Lovecruft2014-04-14
| | |
| * | Update TBB download link/text, add accesskey to improve accessibility.Isis Lovecruft2014-04-14
| | |
| * | Rewrite captcha.html template.Isis Lovecruft2014-04-14
| | |
| * | Rewrite bridges.html template.Isis Lovecruft2014-04-14
| | |
| * | Remove bridge selection buttons from base.html template.Isis Lovecruft2014-04-14
| | |
| * | Rewrite header/navigation bar for HTTPS distributor.Isis Lovecruft2014-04-14
| | |
| * | Link to new stylesheets in base.html template.Isis Lovecruft2014-04-14
| | |
| * | Remove · in BridgeDB HTTPS distributor title.Isis Lovecruft2014-04-14
| | |
| * | Add SVG of Tor roots logo.Isis Lovecruft2014-04-14
| | |
| * | Add webfont files extensions to setup.py assets.Isis Lovecruft2014-04-14
| | |
| * | Add OFL licensed Fort Awesome font for icons.Isis Lovecruft2014-04-14
| | |
| * | Add MIT licensed Lato fonts.Isis Lovecruft2014-04-14
| | |
| * | Change a custom CSS colour element to match similar one from new CSS.Isis Lovecruft2014-04-14
| | |
| * | Decrease CSS class "container-narrow" width to 675px.Isis Lovecruft2014-04-14
| | |
| * | Refactor CSS stylesheets to switch to bootswatch.Isis Lovecruft2014-04-14
|/ /
* | Add BridgeDB's public offline and public online GnuPG keys.Isis Lovecruft2014-04-09
| | | | | | | | * ADD ascii-armoured keyfiles to templates/static/bridgedb.asc.
* | PEP8 whitespace fixes for two lines in Dist.EmailBasedDistributor.Isis Lovecruft2014-04-09
| |
* | Move HTTPServer.rtl_langs → _langs.RTL_LANGS.Isis Lovecruft2014-04-09
| |
* | Rewrite docstring for HTTPServer.WebResourceOptions class.Isis Lovecruft2014-04-08
| |
* | Rewrite docstring for HTTPServer.WebResourceBridges class.Isis Lovecruft2014-04-08
| |
* | Remove commented version string generation code from __init__.py.Isis Lovecruft2014-04-08
| |
* | Merge branch 'fix/9199-safelogging' into developIsis Lovecruft2014-04-08
|\ \
| * | Fix recursion in filtered log call in validation used by log filter.Isis Lovecruft2014-04-08
| | | | | | | | | | | | | | | | | | | | | | | | 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…
| * | Add unittests for bridgedb.safelog module.Isis Lovecruft2014-04-08
| | | | | | | | | | | | * FIXES #9875 Write tests for BridgeDB's logger
| * | Move log configuration functions to bridgedb.util module.Isis Lovecruft2014-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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).
| * | Add bridgedb.safelog sources to Sphinx build configs.Isis Lovecruft2014-04-08
| | |
| * | Move manual safelog setting and functions to bridgedb.safelog module.Isis Lovecruft2014-04-08
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | Add module bridgedb.safelog with automatic log filters.Isis Lovecruft2014-04-08
| | | | | | | | | | | | | | | | | | 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 config options for safelogging and logging threads.Isis Lovecruft2014-04-08
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Merge branch 'fix/11346-homepage-link' into developIsis Lovecruft2014-04-08
|\ \
| * | Add BridgeDB logo .png and link to homepage in base.html.Isis Lovecruft2014-04-08
|/ / | | | | | | * FIXES #11346 add homepage link to BridgeDB HTTPS distributor.
* | Catch gimp CAPTCHA challenge decryption ValueErrors.Isis Lovecruft2014-04-08
| | | | | | | | | | | | | | | | * 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 gimp CAPTCHA encoding strategy to assume HMAC is 20 bytes.Isis Lovecruft2014-04-08
| | | | | | | | | | | | | | | | | | | | | | | | * 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()`.
* | Fix emacs encoding specifier in lib/bridgedb/captcha.py.Isis Lovecruft2014-04-08
| | | | | | | | | | | | | | * 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.
* | Decrease sleep time in server startup unittest.Isis Lovecruft2014-04-07
| |
* | Cleanup captcha.html template.Isis Lovecruft2014-04-07
| | | | | | | | | | | | * FIX the "Type the two words" alt text by changing it to "Type the word". * CHANGE the "I am human" button to say "Submit".
* | PEP8 reorder import statements in Main.Isis Lovecruft2014-04-07
| |
* | PEP8 reorder import statements in Dist.Isis Lovecruft2014-04-07
| |