aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make Cloudfiles copy memory efficient too (#419)Sebastian Spaeth2013-03-021-0/+48
| | | | | | | | | | | | | | | | It seems that (our implementation of) cloudfiles.write() takes all existing data and appends write(data) to it, sending the full monty over the wire everytime. This would of course absolutely kill chunked writes with some O(1^n) performance and bandwidth usage. So, override this method and use the Cloudfile's "send" interface instead. Also make the Cloudfile file wrapper an iterator that allows us to simply do "for data in cloudfile:" which will stream the data in a memory-efficient way. DO NOTE THAT THIS PATCH IS COMPLETELY UNTESTED DUE TO LACK OF SETUP PLEASE REVIEW AND VERIFY.
* Fixed hidden fields in oauth client authorizationJoar Wandborg2013-03-022-5/+4
| | | | | | Removed the translation marking and passed in empty strings to avoid WTForms automagically creating the labels from the field names (i.e. client_id => 'Client Id').
* Do not encode the next kwarg twiceJoar Wandborg2013-03-021-1/+1
|
* Turn "License preference" into a normal field.Elrond2013-03-021-6/+3
| | | | | | | | | | | | instead of rendering it by hand, use the normal field rendering tools. Old: [choose box] License preference New: License preference [choose box] This will be your default license on upload forms.
* Fix some media page redirects in media_collect.Elrond2013-03-011-3/+3
| | | | Use .slug_or_id instead of only .id.
* Fixup _("...") % (...) in media_collect.Elrond2013-03-011-6/+6
| | | | | | | Get some messages translated. Bad: _("..." % (...)) Good: _("...") % (...)
* MediaGoblin not really anything to do with FooCorp anymore.Christopher Allan Webber2013-02-271-15/+0
|
* Fixing translations stuff for command line tools and such.Christopher Allan Webber2013-02-271-2/+7
| | | | | | | | | | | We had switched mg_globals to have the default translations set to None so that it would be set up by the mediagoblin app later. However, this would mean that things like scripts would try to call gettext and error out. Thanks to Tumulte for catching this. This commit sponsored by Aurimas Fišeras. Thank you!
* Simplifying the test for whether or not a user and slug combo exists.Christopher Allan Webber2013-02-271-3/+1
| | | | | | | Thanks to tchernobog for catching this (it was breaking on postgres) and Elrond for the suggestion on how to fix it. This commit sponsored by Caleb Cooper. Thanks Caleb!
* Removing html5shiv for not complying with its own licenses and racismChristopher Allan Webber2013-02-264-28/+0
| | | | | | | | | | Issues of racism seem to have been resolved and removed from upstream, but make having this as a dependency somewhat uncomfortable: https://github.com/aFarkas/html5shiv/issues/91 Regardless, at the time of writing the project doesn't comply with its own license... it states to be dual licensed under MIT and GPLv2 but distributes neither of these licenses with its source.
* Allow media managers without sniff_handlerJoar Wandborg2013-02-271-1/+2
|
* Copying the license from the jquery repository rather than the generic MIT one.Christopher Allan Webber2013-02-261-1/+2
| | | | | Damned MIT and BSD licenses encouraging modification by every project makes compliance annoying.
* Simplifying the "id:" url detection, per Elrond's suggestion.Christopher Allan Webber2013-02-261-11/+9
| | | | | | As pointed out, we didn't need that nested if. This commit sponsored by Paul Kuriakose. Thank you!
* Replacing several request.matchdict['media'] -> media_slug ... shorter!Christopher Allan Webber2013-02-261-2/+2
| | | | | | Thanks for pointing this out, Elrond ;) This commit sponsored by Gerardo Joven Valdivia. Thank you!
* Media URLs with ids in them are now like /u/cwebber/m/id:4112/ rather than ↵Christopher Allan Webber2013-02-262-18/+27
| | | | | | | | /u/cwebber/m/4112/ This avoids some potential name collision issues. This commit sponsored by Asokan Pichai. Thank you!
* Stylistic cleanups to some urlgen calls.Christopher Allan Webber2013-02-261-4/+4
| | | | This commit sponsored by Stephane Berube. Thank you!
* Small PEP-8 compliance fix.Christopher Allan Webber2013-02-261-3/+3
| | | | This commit sponsored by Mats Sjöberg. Thanks!
* Import sqlalchemy's and_ and use it in our select statementChristopher Allan Webber2013-02-261-2/+3
| | | | This commit sponsored by Hans-Jörg Dollansky. Thank you!
* And of course, we need to actually commit at the end of a migration.Christopher Allan Webber2013-02-261-0/+3
| | | | This commit sponsored by Tamas Kemenczy. Thanks, Tamas!
* Dope'ily missed .count() on the query where we're countingChristopher Allan Webber2013-02-251-1/+1
| | | | | | Thanks for catching, Elrond. This commit sponsored by Graham King. Thank you!
* Supplying migrations for a bold new era of mediagoblin entry slugsChristopher Allan Webber2013-02-251-0/+54
| | | | | | | | | | | | | | | | Okay, that's a totally confusing statement, but the docstring of this migration summarizes it well: Entries without slugs now display differently in the url like: /u/cwebber/m/id=251/ ... because of this, we should back-convert: - entries without slugs should be converted to use the id, if possible, to make old urls still work - slugs with = (or also : which is now also not allowed) to have those stripped out (small possibility of breakage here sadly) This commit sponsored by John Sullivan. Thanks johnsu01! :)
* You can now set the PASTE_CONFIG environment variable to control logging setupChristopher Allan Webber2013-02-251-0/+5
| | | | | | | | So this should work: PASTE_CONFIG=/path/to/paste_foo.ini ./lazycelery.sh Thanks to Laurent Fournier for sponsoring this commit!
* Removing stray character from pythonsnake's doc change and filling commentChristopher Allan Webber2013-02-241-2/+3
| | | | This commit sponsored by Johannes Knabbe. Thank you!
* Fix bug 461pythonsnake2013-02-241-0/+3
|
* Improved dropdown styling, part deuxJef van Schendel2013-02-242-12/+22
|
* Merge branch 'master' of gitorious.org:mediagoblin/mediagoblinJef van Schendel2013-02-241-0/+4
|\
| * Changing the order so that config_spec.ini is mentioned after ↵Christopher Allan Webber2013-02-241-4/+4
| | | | | | | | | | | | mediagoblin_local.ini This commit sponsored by Matteo Settenvini. Thanks!
| * Merge remote-tracking branch 'refs/remotes/pythonsnake/581_config'Christopher Allan Webber2013-02-241-0/+4
| |\
| | * Mention mediagoblin/config_spec.inipythonsnake2013-02-131-0/+4
| | |
* | | Improved dropdown stylingJef van Schendel2013-02-242-21/+15
|/ /
* | Merge remote-tracking branch 'refs/remotes/pythonsnake/629_autoplay'Christopher Allan Webber2013-02-242-1/+6
|\ \
| * | Fix bug 629pythonsnake2013-02-102-1/+6
| |/
* | Renaming "extrahead" template hooks to "head".Christopher Allan Webber2013-02-244-5/+5
| | | | | | | | | | | | As Elrond points out, the "extra" is implied by it being a hook! This commit sponsored by Andrew Fustini. Thanks, Drew!
* | extra_head template hook. This will allow plugins to add extra js/css more ↵Christopher Allan Webber2013-02-241-0/+7
| | | | | | | | | | | | easily. This commit sponsored by Moritz Berberich. Thank you!
* | Add owner to list of collections.Elrond2013-02-241-11/+7
| | | | | | | | | | | | | | When listing the collections, that a media is contained in, also show the owner of the collection. Also simplify the whole looping a lot.
* | Use media.id for collecting media too.Elrond2013-02-244-9/+9
| | | | | | | | Also remove some useless whitespace while at it.
* | Use the media id for attachmemt editing.Elrond2013-02-244-20/+23
| | | | | | | | And remove some stray white space from the output.
* | Committing extracted and compiled translationsChristopher Allan Webber2013-02-2356-2621/+3060
| |
* | Committing present MediaGoblin translations before pushing extracted messagesChristopher Allan Webber2013-02-231-26/+27
| |
* | Fix stray comma in listings.views.atom_feedJoar Wandborg2013-02-221-1/+1
| |
* | Added some empty templatesJoar Wandborg2013-02-224-0/+54
| | | | | | | | | | - Make it possible for site owners to hook into base.html without tainting the repository.
* | simplified get_usefulAndrás Veres-Szentkirályi2013-02-221-6/+1
| |
* | use dict.iteritems() instead of dict.items()András Veres-Szentkirályi2013-02-221-1/+1
| |
* | use list expression instead of 3-deep forAndrás Veres-Szentkirályi2013-02-221-7/+2
| |
* | simplified clean_exifAndrás Veres-Szentkirályi2013-02-221-6/+2
| |
* | close file properly and remove unneeded variableAndrás Veres-Szentkirályi2013-02-221-6/+2
| |
* | typofix in commentAndrás Veres-Szentkirályi2013-02-221-1/+1
| |
* | use key in dict instead of key in dict.keys()András Veres-Szentkirályi2013-02-221-1/+1
| |
* | removed unused import cgi.FieldStorageAndrás Veres-Szentkirályi2013-02-221-1/+0
| |
* | removed unused import reAndrás Veres-Szentkirályi2013-02-221-1/+0
| |