Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Documenting plugin configuration | Christopher Allan Webber | 2013-05-08 | 1 | -0/+16 |
| | | | | This commit sponsored by David Krupicz. Thanks, David! | ||||
* | Unit tests for plugins defining their own config_spec.ini! | Christopher Allan Webber | 2013-05-08 | 4 | -0/+76 |
| | | | | This commit sponsored by David Ahmed. Thank you! | ||||
* | Allow plugins to install their own config_spec.ini if they like. | Christopher Allan Webber | 2013-05-08 | 1 | -0/+42 |
| | | | | This commit sponsored by Timothy Vollmer. Thanks Tim! | ||||
* | Removed unused imports in httpapiauth | Joar Wandborg | 2013-05-05 | 1 | -2/+1 |
| | |||||
* | Use collection.url_for_self more; Add missing /a. | Elrond | 2013-05-05 | 4 | -15/+15 |
| | | | | | | | | Using collection.url_for_self(request.urlgen) instead of request.urlgen(lengthy) is so much nicer, so using it around the place. Also added a few missing </a> in one template. | ||||
* | Fix typo in new stl MEDIA_MANAGER. | Elrond | 2013-05-02 | 1 | -1/+1 |
| | |||||
* | Fix media manager reference in video. | Elrond | 2013-04-30 | 1 | -1/+1 |
| | | | | | | An uninstantiated bare media manager doesn't any more support ["something"]. You need to do .something. Fixed for .source_type(). | ||||
* | Make all media types use the new MediaManager classes. | Praveen Kumar | 2013-04-30 | 5 | -44/+59 |
| | |||||
* | Add warning about crypt/itsdangeroussecret.bin. | Elrond | 2013-04-30 | 2 | -1/+15 |
| | | | | You should not leak that file, really. | ||||
* | Create redir_obj and use it around. | Elrond | 2013-04-28 | 3 | -19/+18 |
| | | | | | | | | This is a shortcut function to redirect to the main page for an object. Objects currently supported: media entries and collections. And go around and replace various places to use this. | ||||
* | Rewrite resize_image to use proc_state.store_public. | Elrond | 2013-04-27 | 1 | -10/+7 |
| | | | | This hopefully makes the code nicer and easier to change. | ||||
* | image resizing: Refactor some decisions into resize_tool. | Elrond | 2013-04-27 | 2 | -30/+39 |
| | | | | | | | Loading the thumb/medium sizes from the config, saving things to the db, and loading the image is now all done by resize_tool. It still calls resize_image for the actual work. | ||||
* | Make uuid look like a uuid. | Elrond | 2013-04-27 | 1 | -1/+1 |
| | | | | | | If we really have to create a visible uuid (for a slug in this case), don't try to hide the fact that it is a uuid. So format it like a uuid. | ||||
* | Remove extra indentation left over from previous commit. | Elrond | 2013-04-27 | 1 | -24/+24 |
| | | | | | | | | This only removes an unneeded extra indentation, left over from the previous removal of code around. Extra commit so it is easy to check that it only changes indentation. | ||||
* | Fix translations for collections and drop useless try. | Elrond | 2013-04-27 | 2 | -9/+8 |
| | | | | | | | | | | | | | | | | | | | Don't do: _("With some value: %s" % value) Please do: _("WIth some value: %s") % value Fixed for collection messages. Also removed a try: some_code. except Exception as e: raise No point in doing that. Fixing the indentation of some_code comes in an extra commit, because changing indentation is annoying enough alone, so don't mix it with other changes. | ||||
* | word-wrapping the public/queue storage explainations in storage.rst | Christopher Allan Webber | 2013-04-26 | 1 | -3/+12 |
| | |||||
* | Merge remote-tracking branch 'refs/remotes/npigeon/ticket-660' | Christopher Allan Webber | 2013-04-26 | 1 | -6/+79 |
|\ | |||||
| * | Updating branch... | nattily pigeonfowl | 2013-04-16 | 1 | -1/+1 |
| |\ | | | | | | | | | | Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin into ticket-660 | ||||
| * | | Transfered information from http://wiki.mediagoblin.org/Storage into ↵ | nattily pigeonfowl | 2013-04-16 | 1 | -6/+79 |
| | | | | | | | | | | | | | | | | | | docs/source/devel/storage For info check out ticket: issues.mediagoblin.org/ticket/660 | ||||
* | | | Switch "sqlite_refcheck" keyword arg to "migrations" which Elrond thinks is ↵ | Christopher Allan Webber | 2013-04-26 | 2 | -4/+16 |
| | | | | | | | | | | | | | | | | | | cleaner Also, if migrations is true, *explicitly* say that foreign key checking is off | ||||
* | | | Don't turn on sqlite refcheck stuff during migrations | Christopher Allan Webber | 2013-04-26 | 2 | -3/+3 |
| | | | |||||
* | | | Merge remote-tracking branch 'refs/remotes/rodney757/issue643' into mergetest | Christopher Allan Webber | 2013-04-26 | 2 | -2/+42 |
|\ \ \ | |||||
| * | | | Check for duplicate collection slugs and make them unique. Add unique ↵ | Rodney Ewing | 2013-04-24 | 2 | -2/+42 |
| | | | | | | | | | | | | | | | | constraint to collection.slug model | ||||
* | | | | Removed an unused import | Rodney Ewing | 2013-04-26 | 1 | -2/+0 |
| | | | | |||||
* | | | | Unit test for ReallyLazyProxy. | Elrond | 2013-04-25 | 1 | -0/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | LazyProxy caches its value. So create a unit test for lazy_pass_to_ugettext to make sure its returned proxy actually gives a different translation when the locale is switched. | ||||
* | | | | No lazy_* needed here; Add ReallyLazyProxy.__repr__. | Elrond | 2013-04-25 | 2 | -1/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One should use lazy_* only if you have a good reason. This one found by our unit tests! For example add_message adds the message to the session, the session needs to be serialized (with json) and well, LazyProxy is not serializable. To aid in debugging, gave our ReallyLazyProxy a __repr__. | ||||
* | | | | Adding ReallyLazyProxy, a proxy that does what we expect :) | Christopher Allan Webber | 2013-04-24 | 1 | -4/+13 |
| | | | | |||||
* | | | | Switching non-forms back to using normal pass_to_ugettext | Christopher Allan Webber | 2013-04-24 | 5 | -5/+5 |
| | | | | |||||
* | | | | Fix-bug-667-Use-lazy_pass_to_ugettext-for-forms. | Aditi Mittal | 2013-04-24 | 12 | -15/+15 |
| | | | | |||||
* | | | | Create set_thread_locale and use it. | Elrond | 2013-04-24 | 2 | -3/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | Setting up a new template env should not directly touch the translation tools, but go through a function in translations.py. | ||||
* | | | | resize_image: Change calling style a bit. | Elrond | 2013-04-24 | 1 | -5/+4 |
|/ / / | | | | | | | | | | | | | | | | - entry: not used, removed. - proc_state: going to be used, added. - size_limits: not used, removed. | ||||
* | | | mediagoblin/submit/lib.py: fix typo | Alon Levy | 2013-04-23 | 1 | -1/+1 |
| | | | | | | | | | | | | Signed-off-by: Alon Levy <alon@pobox.com> | ||||
* | | | Create add_media_to_collection() | Elrond | 2013-04-23 | 2 | -12/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | The ideas is by Alon Levy. Not only media_collect, but also other places might want to add media to a collection. So refactor this into a function for easier usage. | ||||
* | | | Doc string for ProcessingState. | Elrond | 2013-04-22 | 1 | -0/+8 |
| | | | |||||
* | | | resize_image: Refactor config loading a small bit. | Elrond | 2013-04-21 | 1 | -7/+4 |
| | | | | | | | | | | | | Well, get the config into a local variable, for easier access. | ||||
* | | | Cleanup storage after test, and test .delete_dir(). | Elrond | 2013-04-21 | 2 | -7/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The storage tests work in the system's tmpdir. The python docs say, we should clean up after using things. Yes the directory should be cleaned up on reboot, but if running tests a lot, the tmpdir could fill up, so we should really cleanup. So use the new .delete_dir() on the storage interface to cleanup test dirs and get them finally removed with os.rmdir. All nicely packed into cleanup_storage(). | ||||
* | | | Merge remote-tracking branch 'remotes/npigeon/ticket-601' | Christopher Allan Webber | 2013-04-20 | 1 | -1/+1 |
|\ \ \ | |||||
| * | | | Changed the max character length for tags on media to 255. Only had to ↵ | nattily pigeonfowl | 2013-04-16 | 1 | -1/+1 |
| | |/ | |/| | | | | | | | | | | | | | change one line in mediagoblin/config_spec.ini in response to isses.mediagoblin.org/ticket/601 | ||||
* | | | bumping image quality to 90, after conversation with Elrond | Christopher Allan Webber | 2013-04-20 | 1 | -1/+1 |
| | | | |||||
* | | | Bumping the default image quality up to 85. | Christopher Allan Webber | 2013-04-20 | 1 | -1/+1 |
| | | | |||||
* | | | image quality can be set in config file | dunkyp | 2013-04-20 | 2 | -3/+6 |
| | | | | | | | | | | | | | | | (cherry-picked from https://gitorious.org/~dunkyp/mediagoblin/dunkyps-mediagoblin/commits/image_quality) | ||||
* | | | Refactor test configs. | Elrond | 2013-04-20 | 1 | -24/+13 |
| | | | | | | | | | | | | All the hook_* tests use the same config, so refactor it. | ||||
* | | | removing old callable utilities and porting stuff over. | Christopher Allan Webber | 2013-04-19 | 5 | -76/+8 |
| | | | |||||
* | | | Let's not use reserved keywords :) | Christopher Allan Webber | 2013-04-19 | 1 | -2/+2 |
| | | | |||||
* | | | changing the things to document in api.rst | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | | | |||||
* | | | Added new tests to test hook_transform() | Christopher Allan Webber | 2013-04-19 | 4 | -3/+32 |
| | | | |||||
* | | | we should be returning the result, not None! | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | | | |||||
* | | | Adjusting tests to use hook_handle and hook_runall | Christopher Allan Webber | 2013-04-19 | 1 | -16/+17 |
| | | | |||||
* | | | fixing hook_handle for when result is never assigned, avoid reference ↵ | Christopher Allan Webber | 2013-04-19 | 1 | -0/+2 |
| | | | | | | | | | | | | without assignent | ||||
* | | | As Elrond points out, we might as well .pop() default_handler | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | | |