aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | | Use cascade for comment deletion.Elrond2013-04-081-7/+13
| | | | | | | | | | | | | | | | | | | | Also use the relationship for getting the comments on a MediaEntry.
* | | | Testing: Remove some left over files/dirs.Elrond2013-04-082-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using tempfile.* in testing, those files get created in the system tempdir. The docs say, we should try to remove them. Yes, the next reboot will clean them up also. And in the workbench case, check after each test, that the global workbench dir is empty (so the sub-workbcnhes have been destroyed).
* | | | Implement queue dir delete for proc_state.delete_queue_fileElrond2013-04-081-1/+6
| | | | | | | | | | | | | | | | | | | | Implement queue dir deleting in the proc_state.delete_queue_file helper function.
* | | | Merge remote-tracking branch 'cwebber/254_delete_queue_directories'Elrond2013-04-085-9/+57
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cwebber/254_delete_queue_directories: Removing docstring bit about delete_file possibly deleting directories in the future Convert media processing backends to delete the queue directory (#254) Implement delete_dir in the FileStorage Conflicts: mediagoblin/media_types/image/processing.py mediagoblin/media_types/video/processing.py Conflicts, because those media_types already use the newer proc_state.delete_queue_file() method (which needs updating.
| * | | | Removing docstring bit about delete_file possibly deleting directories in ↵Christopher Allan Webber2013-01-221-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the future I agree that delete_dir as a separate operation is a better way to do things, especially since there is a non-recursive deletion option that will politely fail if the directory is not empty.
| * | | | Convert media processing backends to delete the queue directory (#254)Sebastian Spaeth2013-01-225-7/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never deleted our queue directory which were created per submission. With the FileStorage backend being able to delete directories now, we can request the deletion of the task directory too. It will only be deleted if it is completely empty.
| * | | | Implement delete_dir in the FileStorageSebastian Spaeth2013-01-222-3/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | plus options for deleting only empty directories and deleting them recursively. Not sure how cloudfile storage is or should be handled here. Are things such as a "directory" even a concept there?
* | | | | Teach runtests.sh the -n arg.Elrond2013-04-061-0/+7
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you give "-n 8" to runtests, it thinks, it got "-n" -- a nice option, ignored. "8" -- Oh! a single test named "8" to run, so no need to run all the GMG tests. Well, that's not what we want. So runtests now knows about -n taking an arg.
* | | | Really removing nosetests things now! all assert_whatever removedChristopher Allan Webber2013-04-0611-96/+75
| | | |
* | | | Better docs for GenerateSlugMixin.Elrond2013-04-061-1/+9
| | | |