aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use ProcessingState for video.Elrond2013-02-081-7/+7
| | | | | | Rewrite video to use the new ProcessingState. Thanks to Joar Wandborg for testing!
* ProcessingState: Document monkey patching.Elrond2013-02-081-0/+10
|
* Implement ProcessingState class and use for imagesElrond2013-02-083-12/+44
| | | | | | | | | | The idea is to have a class that has the knowledge of the currently being processed media and also has tools for that. The long term idea is to make reprocessing easier by for example hiding the way the original comes into the processing code.
* Use logging.config.fileConfig()Joar Wandborg2013-02-071-41/+2
| | | | Instead of the monster I had built before.
* Use system wide EXIF package, if available.Elrond2013-02-071-1/+5
| | | | | | Created and tested by Simon Fondrie-Teitler. Thanks!
* Committing extracted and compiled translationsChristopher Allan Webber2013-02-0554-5154/+7209
|
* Committing present MediaGoblin translations before pushing extracted messagesChristopher Allan Webber2013-02-053-145/+148
|
* Rename {{title}} to {{media_title}}.Elrond2013-02-051-4/+9
| | | | | | | Rename a variable in a translated string to make it easier for translators to know what they're dealing with. And add a <title/> block.
* Mark "Collection" for translation in media_collect.Elrond2013-02-051-1/+3
|
* Merge remote-tracking branch 'aleksej/quotes_and_a_for_addcoll'Elrond2013-02-041-1/+1
|\ | | | | | | | | * aleksej/quotes_and_a_for_addcoll: Small changes to "Add <media> to collection" string
| * Small changes to "Add <media> to collection" stringAleksej2013-02-051-1/+1
| | | | | | | | Add quotation marks and "a" ("a" was proposed by Elrond).
* | Issue 621: Extract strings from hooked templates.Elrond2013-02-041-1/+1
| | | | | | | | | | | | templates using the new hook system were not extracted properly. One needs to add the new extension to the extraction process as well.
* | Search for translation in all templates.Elrond2013-02-041-1/+1
|/ | | | | | | | We missed to search for translatable strings in our plugins and other things that might have templates. The search is now for **/templates/**.html. That should catch a lot more.
* issue 615: config geolocation_map_visible gone.Elrond2013-02-021-2/+1
| | | | | | | | The template in the geolocation plugin still used the old config option. Just remove that. To enable it, you enable the plugin. No need for extra config. Tested by manwesulimo2004 (via IRC).
* Improve formatting for hook template docs.Elrond2013-01-312-2/+10
|
* Switching set syntax to python2.6 compatibleChristopher Allan Webber2013-01-311-1/+1
|
* Added register_template_hooks and get_hook_templates to the plugin apiChristopher Allan Webber2013-01-301-1/+1
| | | | auto module documentation.
* Even better documentation for get_hook_templates!Christopher Allan Webber2013-01-301-1/+9
| | | | Tells how you *can* use it in templates if you really like.
* Improved documentation for get_hook_templates, noting the template tagChristopher Allan Webber2013-01-301-0/+9
|
* Moved the docstring for the plugin template stuff from the class to module ↵Christopher Allan Webber2013-01-301-13/+19
| | | | method
* No need for an __init__ at all in the TemplateHookExtension, really.Christopher Allan Webber2013-01-301-4/+1
|
* Move template hook over to a template_hook tag. Seems to work! :)Christopher Allan Webber2013-01-304-36/+42
|
* Removing unused geolocation_map_visible variable and turning geolocation on ↵Christopher Allan Webber2013-01-302-4/+1
| | | | in default config
* Geolocation stuff, including including templates seems to be working-ishChristopher Allan Webber2013-01-307-8/+105
| | | | | | | - I'm having trouble seeing if the geolocation stuff actually works, but plugins are included - including a list of template hooks works, however the macro to include them does not, so it's kinda verbose
* Very start of plugin hooks and openstreetmap pluginificationChristopher Allan Webber2013-01-304-9/+40
| | | | | | | | - Added start of template hook code to pluginapi.py - Started to break openstreetmap into plugin; moved templates - Added plugin hooks in media and image media templates ... almost certainly, none of this works yet. :)
* Better Py3 compat: d.has_key(k) -> k in dElrond2013-01-305-26/+14
| | | | | | | | py3 does not have dict.has_key any more. You have to use "key in dict" instead. As that works in python2 as well, let's use that. Also some small bits of pep8.
* Improve runtime of one test.Elrond2013-01-291-4/+10
| | | | Do not commit so often. flushing is enough.
* Fix issue 611: Proper (back)relationship on MediaComment.Elrond2013-01-291-1/+7
| | | | well, fix the relationship on the comments.
* Failing testcase for issue 611.Elrond2013-01-292-2/+68
| | | | | | | | | | This currently fails (with foreign key constrain error): 1. Have user A and B. 2. User B creates media M. 3. User A post a comment on M. 4. User A deletes his own account. The test is a little bit wider.
* *docs* intersphinx, exception monitoringJoar Wandborg2013-01-272-1/+48
|
* Docs: Add a database guide to the plugin docs.Elrond2013-01-262-0/+112
| | | | | | Plugin writers will often need to create new tables. So give them some hints, what they need to do and where they might find more info.
* Docs: Create new area for developers.Elrond2013-01-262-1/+11
| | | | | | | | We need some "Part" for developers. Currently, it's named "Part 4: Developer's Zone". But we should come up with a better name soon. Moved the codebase docs in there for starters.
* Add Trim whitespace plugin docs.Elrond2013-01-261-0/+1
| | | | | Added the documentation (which was already present in plugindocs/) to the TOC, so it's getting build and linked.
* Allow doc string extraction and use for pluginapi.Elrond2013-01-263-1/+25
| | | | | | | | Allow us to extract docstrings from our sources using the sphinx.ext.autodoc module. First use: Extract some of the docs for the pluginapi and provide it in a new "Plugin API" section.
* Updated video apt-get to not use globJoar Wandborg2013-01-251-8/+26
| | | | Also changed some literal blocks to code-blocks
* Fix reference of get_test_app->get_app in test_modelmethodsChristopher Allan Webber2013-01-251-2/+2
| | | | | (This changed in master while this test was being written; correcting post-merge.)
* Merge branch '216_cwebber_style_unique_slugs'Christopher Allan Webber2013-01-254-10/+193
|\
| * New mediaentry slug tests now pass!Christopher Allan Webber2013-01-232-3/+134
| | | | | | | | | | | | - fixed some issues with "whacking uuid junk on the slug" - uuid4() -> uuid.uuid4() so that mock will work right - added all the tests!
| * require mock for the new uuid-mocking testsChristopher Allan Webber2013-01-231-0/+1
| |
| * We don't want any empty string slugs, so make "" -> NoneChristopher Allan Webber2013-01-231-0/+4
| |
| * Switching uuid4()[1:4] -> uuid4().hex[:4]Christopher Allan Webber2013-01-231-1/+1
| | | | | | | | | | | | .hex is what we need to access to get at the ascii (hex) version anyway. Also, not sure why the previous version grabbed starting at the index of 1... just grab the first characters instead.
| * Simplifying string concatenation in generate_slug and fixing docstringChristopher Allan Webber2013-01-151-5/+7
| | | | | | | | | | | | | | | | - made the mistake of copying some commit message things into the docstring. Fixed. - elrond points out that += is nicer and we don't need u"" in this case since we're not concatenating a variable, we're concatenating a known ascii string.
| * A revised algorithm for generating slugs.Christopher Allan Webber2013-01-151-11/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This one does not *force* slugs, but usually it will probably result in a niceish one. The end *result* of the algorithm will (presumably, I have not tested it) result in these resolutions for these situations: - If we have a slug, make sure it's clean and sanitized, and if it's unique, we'll use that. - If we have a title, slugify it, and if it's unique, we'll use that. - If we can't get any sort of thing that looks like it'll be a useful slug out of a title or an existing slug, bail, and don't set the slug at all. Don't try to create something just because. Make sure we have a reasonable basis for a slug first. - If we have a reasonable basis for a slug (either based on existing slug or slugified title) but it's not unique, first try appending the entry's id, if that exists - If that doesn't result in something unique, tack on some randomly generated bits until it's unique. That'll be a little bit of junk, but at least it has the *basis* of a nice slug!
| * Need to import uuid4 for generate_slug to totally workChristopher Allan Webber2013-01-151-0/+2
| |
| * Make generate_slug assign a slug in any caseSebastian Spaeth2013-01-151-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | generate_slug could assign "none" as slug. Make sure it assigns a unique slug in any case. We now try based on: a) existing slug values b) media.title c) media.id d) random garbage Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
| * Sanitize slug input on media editSebastian Spaeth2013-01-151-7/+6
| | | | | | | | | | | | | | | | | | Previously we allowed EVERYTHING, even slashes as slug when editing the media. Make sure we slugify the input to sanitize it. (+ string formdata is unicode, so there is no need to convert it) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
| * Disallow ":" as part of a media slugSebastian Spaeth2013-01-151-1/+1
| | | | | | | | | | | | | | We might want to use "id:IDN" as a special case slug to point to a media's id. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* | Use better relationships to delete collections.Elrond2013-01-231-5/+8
| | | | | | | | | | | | When deleting a User, his/her collections can be deleted by sqlalchemy: Collections do not need any special code to be executed on deletion.
* | Made pil_filters a PIL_FILTERS (global)Joar Wandborg2013-01-221-8/+8
| |
* | Changed sampling filter default to AAJoar Wandborg2013-01-221-2/+2
| |