aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* update documentation for s/nose/py.test/Alon Levy2013-04-171-1/+1
| | | | Signed-off-by: Alon Levy <alon@pobox.com>
* PIL: Support systems with Pillow and withoutAlon Levy2013-04-178-11/+34
| | | | | | | Fixes for systems with Pillow, but leaves a "try: except ImportError" to support anything that doesn't have a PIL top level import. Signed-off-by: Alon Levy <alon@pobox.com>
* pdf/processing.py: don't use check_output, only in python>=2.7Alon Levy2013-04-171-9/+14
| | | | Signed-off-by: Alon Levy <alon@pobox.com>
* Refactor test resources into new resources.pyElrond2013-04-175-55/+47
|
* PDF: Use pytest.mark.skipif for skipping testsElrond2013-04-162-5/+4
| | | | | | | | | | Instead of leaving test early if they can not run, use the pytest.mark.skipif marked to tell the test system not to even run the test. This also adds to the stats, because skipped tests are counted differently. Thus making it obvious, that some tests did not run, because of any reason.
* Switch to an apparently newer version of pdf.js per irc.mozilla.org #pdfjs ↵Christopher Allan Webber2013-04-161-0/+0
| | | | recommendations
* test_timesince() doesn't need a complete test_app.Elrond2013-04-161-1/+1
|
* Removing unused importsChristopher Allan Webber2013-04-151-5/+0
|
* Removing unused imports and an unused media_files dict referenceChristopher Allan Webber2013-04-151-4/+0
|
* pdf: use pdf.js in an iframeAlon Levy2013-04-151-203/+3
|
* add pdf media typeAlon Levy2013-04-1517-1/+5837
| | | | | | | | | | | | | | | | | | | | | | | The new media type supports pdf and a subset of media recognized by libreoffice via unoconv. Every document added goes through: * conversion to pdf with unoconv if not already a pdf * creation of thumbnail and medium sized image, and pdfinfo generates some information (even for unoconv produces docs - should fix this) Poppler (pdftocairo, pdfinfo) is used. http://poppler.freedesktop.org/ A working but uglified pdf.js integration exists, which is enabled by setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini) Adds one test to the test_submission test suite, and another separate test_pdf suite. The tests are only run if media_types.pdf.processing.check_prerequisites passes, so the test suite will not require any extra package. TODO: make test suite say 'skipped' in that case instead of just 'ok' Signed-off-by: Alon Levy <alon@pobox.com>
* document submodule usageAlon Levy2013-04-141-0/+13
| | | | Signed-off-by: Alon Levy <alon@pobox.com>
* Merge branch 'master' of gitorious.org:mediagoblin/mediagoblinChristopher Allan Webber2013-04-137-101/+297
|\
| * Merge remote-tracking branch 'joar-github/oauth/refresh_tokens'Nathan Yergler2013-04-137-101/+297
| |\ | | | | | | | | | This merges the patch for Issue #548.
| | * OAuth: Support refresh tokens, etcJoar Wandborg2013-04-067-102/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially I was going to write a failing test for refresh tokens. Thus this fix includes an orphaned 'expect_failure' method in test utils. I ended up writing support for OAuth refresh tokens, as well as a lot of cleanup (hopefully) in the OAuth plugin code. **Rebase**: While waiting for this stuff to be merged, the testing framework changed, it comes with batteries included regarding fails. Removed legacy nosetest helper. Also added a lot of backref=backref([...], cascade='all, delete-orphan')
* | | Merge remote-tracking branch 'refs/remotes/tsyesika/599-allow-email-login'Christopher Allan Webber2013-04-132-4/+12
|\ \ \ | |/ / |/| |
| * | Allows you to use your username or email to loginJessica T2013-04-122-4/+12
| | |
* | | Text-align the headers on the media panel to the left to avoid confusionChristopher Allan Webber2013-04-131-0/+1
| | | | | | | | | | | | Thanks to Tsyesika for pointing this out!
* | | Adding Jessica Tallon to AUTHORS!Christopher Allan Webber2013-04-131-0/+1
| | |
* | | Comment when/author link styling changesChristopher Allan Webber2013-04-132-2/+23
| | |
* | | Why not also display the times on when these media were createdChristopher Allan Webber2013-04-131-1/+1
| | |
* | | Changing translations to say "amount of time ago", basicallyChristopher Allan Webber2013-04-131-8/+10
| | | | | | | | | | | | Previously they were just "amount of time"... I think this fits a bit better.
* | | Merge remote-tracking branch 'refs/remotes/tsyesika/394-fuzzy-timestamp'Christopher Allan Webber2013-04-137-4/+184
|\ \ \ | |/ / |/| |
| * | Adds the fuzzy timestamp to the admin panel tooJessica T2013-04-121-1/+1
| | |
| * | Adds the unit tests and removes useless function we don't useJessica T2013-04-122-7/+57
| | |
| * | Adds the timesince ability which fixes #394Jessica T2013-04-115-3/+133
| | |
* | | adding callable_runone and callable_runall to the docsChristopher Allan Webber2013-04-111-1/+2
| | |
* | | Merge branch '637_friendlier_hooks'Christopher Allan Webber2013-04-109-10/+315
|\ \ \
| * | | Switch several functions over to using the new callable_run* tools!Christopher Allan Webber2013-04-103-10/+5
| | | |
| * | | Remove unhandled_okay from kwargs if it's there before passing to functions.Christopher Allan Webber2013-04-101-1/+3
| | | |
| * | | callable hook convenience functions.. now work, and with tests!Christopher Allan Webber2013-04-106-5/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added three "callables" test plugins. - updated callable_runone to check for unhandled_okay in the kwargs dict. All passing!
| * | | tests for new pluginapi methods that can't possibly pass yet :)Christopher Allan Webber2013-04-091-0/+111
| | | |
| * | | Convenience functions for callable hooksChristopher Allan Webber2013-04-071-0/+65
| | | |
* | | | Open Source -> Free Software from the borrowed extlib repositoriesChristopher Allan Webber2013-04-101-1/+1
| |/ / |/| | | | | | | | We're a GNU project, gotta get with the GNU world order ;)
* | | Adding some help about what to do if flup flakes out on youChristopher Allan Webber2013-04-101-0/+5
| | |
* | | Fix sessions so they work across the site.Christopher Allan Webber2013-04-101-3/+1
| | |
* | | Make session cookies more secure.Elrond2013-04-092-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Our session cookies only need to be available to http, so mark them appropiately. 2. Send the cookie to the subpath for mediagoblin. And instantiate a session manager on the app, once.
* | | Remove the last traces of beaker.Elrond2013-04-095-29/+2
| | | | | | | | | | | | | | | | | | | | | | | | There were still some traces of beaker around: - docs: replaced by reference to itsdangerous. - paste configs: Wiped away. - config_spec.ini: wiped. - test_mgoblin_app.ini: also wiped.
* | | Fix left over from variable renaming.Elrond2013-04-091-1/+4
| | |
* | | Merge remote-tracking branch 'brett/itsdangerous'Elrond2013-04-0912-80/+223
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * brett/itsdangerous: Call is_updated instead of testing it boolean. Harden It's Dangerous key management. First tests for the Session class. Set a starting value for session.send_new_cookie. Remove beaker stuff from the code. Delete the session cookie on an empty session. Back sessions with It's Dangerous. Improve fs security for itsdangerous secret. Docs for get_timed_signer_url. Basic itsdangerous infrastructure. Conflicts: mediagoblin/tests/test_cache.py
| * | | Call is_updated instead of testing it boolean.Brett Smith2013-03-251-1/+1
| | | |
| * | | Harden It's Dangerous key management.Brett Smith2013-03-241-20/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code was theoretically subject to timing attacks, where an attacker could read the key in between the time it was saved to the file and when the chmod happened. This version prevents that by using umasks to ensure the files always have the right permissions. This version also avoids using a key that cannot be saved due to some system setup bug.
| * | | First tests for the Session class.Brett Smith2013-03-241-0/+30
| | | |
| * | | Set a starting value for session.send_new_cookie.Brett Smith2013-03-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | This makes session.__init__ slightly more complicated but probably simplifies everything else, especially if we make the class smarter later by having it track changes itself.
| * | | Remove beaker stuff from the code.Brett Smith2013-03-247-79/+3
| | | | | | | | | | | | | | | | This is all obsoleted by It's Dangerous.
| * | | Delete the session cookie on an empty session.Brett Smith2013-03-241-1/+4
| | | |
| * | | Back sessions with It's Dangerous.Brett Smith2013-03-244-3/+67
| | | | | | | | | | | | | | | | This is a contribution to #668.
| * | | Improve fs security for itsdangerous secret.Elrond2013-03-221-2/+6
| | | | | | | | | | | | | | | | Set mode 700 on the directory, mode 600 on the file.
| * | | Docs for get_timed_signer_url.Elrond2013-03-221-0/+26
| | | |
| * | | Basic itsdangerous infrastructure.Elrond2013-03-223-0/+61
| | | | | | | | | | | | | | | | | | | | Implement the basic infrastructure for using itsdangerous in mediagoblin. Usage instructions will follow.