aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Making the tags on media pages point to the user's tag listing specifically.Christopher Allan Webber2013-02-212-7/+11
| | | | This commit sponsored by Torsten Meissner. Thanks, Torsten!
* Fixing user gallery tags filter to be on slug rather than name.Christopher Allan Webber2013-02-211-1/+1
| | | | This commit sponsored by Kat Walsh. Thanks, Kat!
* Merge remote-tracking branch 'refs/remotes/spaetz/WIP/user_tag_gallery'Christopher Allan Webber2013-02-213-5/+18
|\
| * Implement user's tag filtered gallery pageSebastian Spaeth2013-01-213-5/+18
| | | | | | | | | | | | | | | | tags used to be global, you could only browse media by tag for all users. This patch implements a view that allows us to browse only a user's tagged media. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* | plugins/api: fix for cross origin requestsRunar Petursson2013-02-201-1/+2
| | | | | | | | | | | | The response headers were never getting set because of a bug in the 7c552c0 commit. This expands the loop into a more readable form and results in the headers getting set.
* | Fix some small bits in base.html.Elrond2013-02-191-12/+13
| | | | | | | | | | | | | | | | | | | | | | 1. Add a trailing slash to the mediagoblin.org URL. (The string changed anyway, so translations are not affected more than already.) 2. Order was wrong for those two at the end (old version): {% endblock mediagoblin_body %} </div> 3. Fix some little indenting issues. 4. Remove some useless space from the output.
* | Merge remote-tracking branch 'pythonsnake/537_version'Elrond2013-02-192-1/+3
|\ \ | | | | | | | | | | | | | | | * pythonsnake/537_version: Added "version" before the version Fix bug 537
| * | Added "version" before the versionpythonsnake2013-02-111-1/+1
| | |
| * | Fix bug 537pythonsnake2013-02-102-1/+3
| | |
* | | Fix deleting media with attachments.Elrond2013-02-183-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If one deletes a media with attachments, there have been various problems: 1) If the file in the storage did not exist any more (maybe because due to a previous deletion attempt?), the error propagation failed, because the wrong thing was gathered. 2) The attachment database entries were not deleted. Using cascade for this, for now. Also add a simple unit test, that tests both by having a broken attachment on a media.
* | | Fix errors in collection viewsJoar Wandborg2013-02-181-0/+5
| | | | | | | | | | | | When a collection does not exist, render the 404 page.
* | | Change from email format in tag URI to domain formatJoar Wandborg2013-02-131-2/+2
| | | | | | | | | | | | Also fixed a bug (thanks pyflakes)
* | | Address concerns in Issue #543Joar Wandborg2013-02-131-8/+10
| | | | | | | | | | | | | | | | | | | | | - Fixed PEP-008 issues. - Removed .user-{user} from the tag URI and put it before the domain, such as {user}@{host} instead. - Use year from collection.created instead of current year.
* | | Add markdown notice to collection description.Elrond2013-02-132-10/+3
| | | | | | | | | | | | | | | | | | Use wtforms_util.render_field_div on the collection description, so that the markdown notice in the wtform is actually rendered to html.
* | | Fixing MANIFEST.in: graft expects one directory per lineChristopher Allan Webber2013-02-101-1/+2
| | |
* | | Updating MANIFEST.in for more files... trying to make this work on pypi :)Christopher Allan Webber2013-02-101-4/+7
| | |
* | | Tuned logging and added comments to 511 fixJoar Wandborg2013-02-101-3/+22
| | |
* | | Fixed issue #511.pythonsnake2013-02-101-4/+12
|/ /
* | Merge remote-tracking branch 'refs/remotes/elrond/sql/media_data'Christopher Allan Webber2013-02-098-29/+48
|\ \
| * | Drop backward compatibility for media_data backref.Elrond2013-02-011-9/+1
| | | | | | | | | | | | Now we only support media_type backrefs with uselist=False.
| * | Drop media_data_table property.Elrond2013-02-011-6/+3
| | | | | | | | | | | | | | | Only when creating a new media_data row, we need the table. So load that locally in media_data_init().
| * | Turn media.{backref_nam} from a list to a scalar.Elrond2013-02-015-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | For all our media_types, let the backref on the media_entry be a scalar (there is only one media_data per media_entry) instead of a list with zero or one entry. The media_data toolchain on MediaEntry currently handles both transparently.
| * | Rewrite media_data handling to use relationshipsElrond2013-02-011-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of doing query by hand, use the relationships on the models to find the media_data. Is is made possible by the BACKREF_NAME in each models.py, which lets us know the local attr to ask for. Also initialize the relationship attribute on new media_data instead of the media_id. Also do not add it to the session. This gives us: - This automatically initializes the other side of the relationship, which will allow later acces via that way. - If the media_data is too early in the session, when the (new) media_entry is not yet in there, this could get conflicts. Avoid those by not adding to session. - Uses cascading to commit media_data together with the media_entry.
| * | Some tests for media_data, yeah!Elrond2013-02-012-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | One in the submissions, that posts a jpg with gps data. One in the modelmethods to test some behaviours. The later test fails. Fixes coming up.
* | | Add type="text/javascript" for <script>.Elrond2013-02-091-1/+2
| | | | | | | | | | | | | | | Our jquery <script> tag did not have a proper type attribute.
* | | Add translation tags; remove unnecessary title attribute from linkJef van Schendel2013-02-081-3/+2
| | |
* | | Remove unused translation variableJef van Schendel2013-02-081-1/+1
| | |
* | | Fix "Add to collection" button: remove icon, add text, add to collections.htmlJef van Schendel2013-02-083-31/+29
| | |
* | | Remove the collection counter because it's not neededJef van Schendel2013-02-081-1/+1
| | |
* | | Kill monkeypatching of ProcessingState.Elrond2013-02-087-27/+15
| | | | | | | | | | | | | | | | | | | | | And change the process_foo() API to accept a processingstate now. image and video are tested, the others are UNTESTED.
* | | Also refactor "copy original into public storage".Elrond2013-02-083-7/+8
| | | | | | | | | | | | | | | | | | | | | This makes the processing code easier to read/write and alos will help the reprocessing once we get to it. Thanks to Joar Wandborg for testing!
* | | 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
| |