aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
Commit message (Collapse)AuthorAgeFilesLines
* Added tests for HTTP callbacksJoar Wandborg2012-09-271-0/+9
|
* HTTP callback fixesJoar Wandborg2012-09-261-4/+11
| | | | | | | | | | | - Added HTTPError catching around the callback request, to not mark the entry as failed, just log the exception. - Fixed bug where I forgot to actually fetch the entry before passing it to json_processing_callback. - Changed __main__ migration #6 to create the ProcessingMetaData table as it is currently, to prevent possible breakage if a siteadmin is lagging behind with his db migrations and more than one migration wants to fix stuff with the ProcessingMetaData table.
* Added support for http callbacks on processingJoar Wandborg2012-09-261-0/+73
| | | | | Sends an HTTP POST request back to an URL given on submission to the API submit view.
* Added flask-wtf html5 fields to extlibJoar Wandborg2012-09-211-0/+1
|
* Created API plugin, moved api_auth to the API pluginJoar Wandborg2012-09-131-29/+0
|
* Add OAuth models, plugin DB migrations, api_authJoar Wandborg2012-09-131-1/+34
|
* Fix for issue #491, invert latitude when neccesary.warp2012-08-271-0/+3
|
* replaced os.path.split()[0] with os.path.dirname() and corrected a couple of ↵Aleksej2012-08-131-2/+2
| | | | comments
* allow pre+code tags in rendered HTMLJakob Kramer2012-08-071-1/+2
|
* renamed MARKDOWN_INSTANCE to UNSAFE_...Jakob Kramer2012-08-071-2/+4
| | | | | | | | | as proposed by Elrond. Conflicts: mediagoblin/tools/text.py Signed-off-by: Joar Wandborg <git@wandborg.com>
* Merge remote-tracking branch 'refs/remotes/gandaro/369-thread-gettext'Christopher Allan Webber2012-07-262-7/+6
|\
| * make mg_globals.translations thread-safeJakob Kramer2012-07-182-7/+6
| | | | | | | | | | I added mg_globals.thread_scope (an instance of threading.local) and made `translations' an attribute of it.
* | Rework plugin infrastructure to nix side-effectsWill Kahn-Greene2012-07-171-60/+40
|/ | | | | | | | | | | | | This reworks the plugin infrastructure so as to remove module-loading side-effects which were making things a pain in the ass to test. With the new system, there's no auto-registering meta class. Instead plugins do whatever they want and then specify a hooks dict that maps hook names to callables for the things they're tying into. The most common one (and the only one we've implemented so far) is "setup". This also simplifies the sampleplugin a little by moving the code to __init__.py.
* Finish flatpagesplugin; add plugin docsWill Kahn-Greene2012-07-161-1/+49
|
* Flatpages first passWill Kahn-Greene2012-07-161-1/+33
| | | | | | | | | | This fixes the template loader so that it can load plugin templates. This adds code for registering template paths so that plugins can add their own templates. This adds the base code for the flatpagesfile plugin. It doesn't serve pages, yet, but it's pretty close.
* Small fix to themedata_for_theme_dir utility about sectionsChristopher Allan Webber2012-07-141-1/+1
| | | | | If we can't find the theme section, we should use a dictionary instead of None in this section of code.
* Store licensing info as wellChristopher Allan Webber2012-07-141-1/+2
|
* Moving the "dependency injection printer tools" over to tools/common.pyChristopher Allan Webber2012-07-141-0/+36
|
* Making the register_themes() tool also return the current themeChristopher Allan Webber2012-07-141-2/+11
| | | | | This will reduce the amount of work reproducing this behavior when pulling together the theme registry elsewhere.
* Update staticdirect stuff so it can handle "domains" of staticdirectionChristopher Allan Webber2012-07-141-22/+27
|
* Kill MultiRemoteStaticDirect... nobody was really using it anywayChristopher Allan Webber2012-07-141-17/+0
| | | | | Since we're adding the new "domain" staticdirect system we should clean this up.
* Moving staticdirect to tools/Christopher Allan Webber2012-07-141-0/+75
|
* Early version of theme registry codeChristopher Allan Webber2012-07-141-0/+79
|
* Merge branch 'master' into 201207-testfixesBrett Smith2012-07-082-5/+29
|\
| * Decoding EXIF strings as UTF-8 with replace in the ifd_tag_to_dictJoar Wandborg2012-07-071-1/+14
| | | | | | | | method.
| * Switching the syntax of this exception-raiseChristopher Allan Webber2012-07-061-2/+1
| | | | | | | | | | | | | | It's nicer to raise exceptions like raise Exception("foo") than raise Exception, "foo"
| * Removing _jointhat()... not really needed.Christopher Allan Webber2012-07-061-14/+2
| |
| * one more noSuchFiles->no_such_filesChristopher Allan Webber2012-07-061-1/+1
| |
| * Merge remote-tracking branch 'refs/remotes/merge-requests/37'Christopher Allan Webber2012-07-061-4/+28
| |\
| | * changing NoSuchFiles for no_such_filesJorge Araya Navarro2012-07-051-4/+4
| | |
| | * fixing bug #255 as Joar and CWebber ask me to do :)Jorge Araya Navarro2012-06-281-4/+28
| | |
* | | Don't rely on app_config if common.TESTS_ENABLED.Brett Smith2012-07-081-3/+4
|/ / | | | | | | | | app_config will be None in this case, so all of these subscripts will fail.
* / Fixed EXIF longitude bugJoar Wandborg2012-06-231-3/+14
|/ | | | | - Negative or 'W' longitudes were not accounted for. - pyflakes fixes.
* Update documentation for pluginsWill Kahn-Greene2012-05-161-12/+41
|
* 401. Plugin infrastructureWill Kahn-Greene2012-05-131-0/+118
| | | | | | | | * implements installing, loading and setup for plugins * codifies configuration * has a sample plugin * docs * tests
* Merge remote-tracking branch 'remotes/slikdigit/bassam'Christopher Allan Webber2012-03-261-0/+7
|\ | | | | | | | | Conflicts: mediagoblin/media_types/image/processing.py
| * fix for ticket #404Bassam2012-03-151-0/+7
| |
* | Another .one -> .find_oneElrond2012-03-131-2/+6
|/ | | | | | | | | | | | | | | | | Same idea as in the previous commit. Joar caught this one. To reproduce 1. Create a user with an all-decimal ObjectId in mongo 2. Login using that user, while mongodb is enabled. 3. Switch instance to sql. 4. Restart. 5. Refresh any page. This will error, because no user with that object id exists any more. While around, improved logging.
* Attachment support in the SQL backendElrond2012-02-281-1/+1
| | | | | | | | | attachments working with the sql backend. - SQL Schema for attachment files, ordering attachments by their name, not by the submission order (as earlier). - Dot-Notation for attachments, where missing. - convert existing attachments over from mongo -> sql
* Fix copyright statements; add LICENSE for EXIF.pyWill Kahn-Greene2012-02-082-2/+2
|
* It's 2012 all up in hereChristopher Allan Webber2012-02-0211-11/+11
|
* Acts on feedback from ChrisJoar Wandborg2012-01-251-7/+4
| | | | | | | - Added EXIF tests - Removed pdb from image processing "ifmain" - Fixed comment typo in image processing - Removed unused import in tools.exif
* EXIF fixesJoar Wandborg2012-01-253-0/+169
| | | | | | | - Moved exif functions from mediagoblin.media_types.image.processing to mediagoblin.tools.exif - Moved EXIF.py link from mediagoblin.media_types to mediagoblin.tools.extlib - Refractored and updated EXIF exctraction and presentation
* Canonical license URIS for CC stuff should have a trailing slash.Christopher Allan Webber2012-01-211-5/+5
|
* Show the license list in sorted formChristopher Allan Webber2012-01-211-1/+1
|
* Provided a SORTED_SUPPORTED_LICENSES (but keep the old unsorted dict!)Christopher Allan Webber2012-01-211-38/+31
|
* Added new filesAaron Williamson2012-01-171-0/+62
|
* Drop sessions with invalid ObjectIdsElrond2012-01-141-4/+8
| | | | | | | | The session can contain invalid objectids when switching a more or less live instance (with logged in users) from mongo to sql or vice versa. So drop the complete session and force the user to login again.
* f691: Use StrictUndefined for templates and fix some issuesElrond2012-01-041-0/+3
| | | | | | | | | | | | | | | | | References to undefined variables in templates were silently ignored/converted to None/empty strings. This makes coding lazy stuff easy, but it makes catching typos harder. (It would have catched one of the SQL things earlier!) But on the other hand it might make the current templates error out everywhere. In fact, early testing has shown two instances, that errored out. Those are fixed with this commit too. If this turns out to make things more complex and useless than actually solving any problems, it can easily be dropped again.
* Dot-Notation for MediaEntry.media_filesElrond2012-01-041-1/+1
|