mediagoblin.git
11 years agoAllow plugins to install their own config_spec.ini if they like.
Christopher Allan Webber [Wed, 8 May 2013 15:37:38 +0000 (10:37 -0500)]
Allow plugins to install their own config_spec.ini if they like.

This commit sponsored by Timothy Vollmer.  Thanks Tim!

11 years agoRemoved unused imports in httpapiauth
Joar Wandborg [Sun, 5 May 2013 20:24:34 +0000 (22:24 +0200)]
Removed unused imports in httpapiauth

11 years agoUse collection.url_for_self more; Add missing /a.
Elrond [Sun, 5 May 2013 12:29:57 +0000 (14:29 +0200)]
Use collection.url_for_self more; Add missing /a.

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.

11 years agoFix typo in new stl MEDIA_MANAGER.
Elrond [Thu, 2 May 2013 21:38:07 +0000 (23:38 +0200)]
Fix typo in new stl MEDIA_MANAGER.

11 years agoFix media manager reference in video.
Elrond [Tue, 30 Apr 2013 21:44:56 +0000 (23:44 +0200)]
Fix media manager reference in video.

An uninstantiated bare media manager doesn't any more
support ["something"]. You need to do .something.
Fixed for .source_type().

11 years agoMake all media types use the new MediaManager classes.
Praveen Kumar [Mon, 29 Apr 2013 00:15:05 +0000 (05:45 +0530)]
Make all media types use the new MediaManager classes.

11 years agoAdd warning about crypt/itsdangeroussecret.bin.
Elrond [Mon, 29 Apr 2013 22:24:45 +0000 (00:24 +0200)]
Add warning about crypt/itsdangeroussecret.bin.

You should not leak that file, really.

11 years agoCreate redir_obj and use it around.
Elrond [Sat, 27 Apr 2013 22:14:50 +0000 (00:14 +0200)]
Create redir_obj and use it around.

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.

11 years agoRewrite resize_image to use proc_state.store_public.
Elrond [Sun, 21 Apr 2013 12:45:40 +0000 (14:45 +0200)]
Rewrite resize_image to use proc_state.store_public.

This hopefully makes the code nicer and easier to change.

11 years agoimage resizing: Refactor some decisions into resize_tool.
Elrond [Sun, 21 Apr 2013 12:45:40 +0000 (14:45 +0200)]
image resizing: Refactor some decisions into resize_tool.

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.

11 years agoMake uuid look like a uuid.
Elrond [Sat, 27 Apr 2013 15:01:09 +0000 (17:01 +0200)]
Make uuid look like a uuid.

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.

11 years agoRemove extra indentation left over from previous commit.
Elrond [Sat, 27 Apr 2013 13:04:56 +0000 (15:04 +0200)]
Remove extra indentation left over from previous commit.

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.

11 years agoFix translations for collections and drop useless try.
Elrond [Sat, 27 Apr 2013 12:52:08 +0000 (14:52 +0200)]
Fix translations for collections and drop useless try.

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.

11 years agoword-wrapping the public/queue storage explainations in storage.rst
Christopher Allan Webber [Fri, 26 Apr 2013 21:13:05 +0000 (16:13 -0500)]
word-wrapping the public/queue storage explainations in storage.rst

11 years agoMerge remote-tracking branch 'refs/remotes/npigeon/ticket-660'
Christopher Allan Webber [Fri, 26 Apr 2013 21:08:39 +0000 (16:08 -0500)]
Merge remote-tracking branch 'refs/remotes/npigeon/ticket-660'

11 years agoSwitch "sqlite_refcheck" keyword arg to "migrations" which Elrond thinks is cleaner
Christopher Allan Webber [Fri, 26 Apr 2013 20:27:44 +0000 (15:27 -0500)]
Switch "sqlite_refcheck" keyword arg to "migrations" which Elrond thinks is cleaner

Also, if migrations is true, *explicitly* say that foreign key checking is off

11 years agoDon't turn on sqlite refcheck stuff during migrations
Christopher Allan Webber [Fri, 26 Apr 2013 20:09:03 +0000 (15:09 -0500)]
Don't turn on sqlite refcheck stuff during migrations

11 years agoMerge remote-tracking branch 'refs/remotes/rodney757/issue643' into mergetest
Christopher Allan Webber [Fri, 26 Apr 2013 16:12:46 +0000 (11:12 -0500)]
Merge remote-tracking branch 'refs/remotes/rodney757/issue643' into mergetest

11 years agoRemoved an unused import
Rodney Ewing [Fri, 26 Apr 2013 14:32:39 +0000 (07:32 -0700)]
Removed an unused import

11 years agoUnit test for ReallyLazyProxy.
Elrond [Thu, 25 Apr 2013 11:53:19 +0000 (13:53 +0200)]
Unit test for ReallyLazyProxy.

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.

11 years agoNo lazy_* needed here; Add ReallyLazyProxy.__repr__.
Elrond [Thu, 25 Apr 2013 12:16:17 +0000 (14:16 +0200)]
No lazy_* needed here; Add ReallyLazyProxy.__repr__.

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__.

11 years agoAdding ReallyLazyProxy, a proxy that does what we expect :)
Christopher Allan Webber [Wed, 24 Apr 2013 21:39:59 +0000 (16:39 -0500)]
Adding ReallyLazyProxy, a proxy that does what we expect :)

11 years agoSwitching non-forms back to using normal pass_to_ugettext
Christopher Allan Webber [Wed, 24 Apr 2013 19:39:16 +0000 (14:39 -0500)]
Switching non-forms back to using normal pass_to_ugettext

11 years agoFix-bug-667-Use-lazy_pass_to_ugettext-for-forms.
Aditi Mittal [Mon, 22 Apr 2013 13:48:45 +0000 (19:18 +0530)]
Fix-bug-667-Use-lazy_pass_to_ugettext-for-forms.

11 years agoCheck for duplicate collection slugs and make them unique. Add unique constraint...
Rodney Ewing [Wed, 24 Apr 2013 01:28:10 +0000 (18:28 -0700)]
Check for duplicate collection slugs and make them unique. Add unique constraint to collection.slug model

11 years agoCreate set_thread_locale and use it.
Elrond [Fri, 1 Mar 2013 12:16:41 +0000 (13:16 +0100)]
Create set_thread_locale and use it.

Setting up a new template env should not directly touch the
translation tools, but go through a function in
translations.py.

11 years agoresize_image: Change calling style a bit.
Elrond [Wed, 24 Apr 2013 13:20:32 +0000 (15:20 +0200)]
resize_image: Change calling style a bit.

- entry: not used, removed.
- proc_state: going to be used, added.
- size_limits: not used, removed.

11 years agomediagoblin/submit/lib.py: fix typo
Alon Levy [Tue, 23 Apr 2013 06:39:51 +0000 (09:39 +0300)]
mediagoblin/submit/lib.py: fix typo

Signed-off-by: Alon Levy <alon@pobox.com>
11 years agoCreate add_media_to_collection()
Elrond [Tue, 23 Apr 2013 10:29:17 +0000 (12:29 +0200)]
Create add_media_to_collection()

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.

11 years agoDoc string for ProcessingState.
Elrond [Mon, 22 Apr 2013 20:17:41 +0000 (22:17 +0200)]
Doc string for ProcessingState.

11 years agoresize_image: Refactor config loading a small bit.
Elrond [Sun, 21 Apr 2013 09:42:58 +0000 (11:42 +0200)]
resize_image: Refactor config loading a small bit.

Well, get the config into a local variable, for easier access.

11 years agoCleanup storage after test, and test .delete_dir().
Elrond [Sun, 21 Apr 2013 17:19:40 +0000 (19:19 +0200)]
Cleanup storage after test, and test .delete_dir().

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().

11 years agoMerge remote-tracking branch 'remotes/npigeon/ticket-601'
Christopher Allan Webber [Sat, 20 Apr 2013 22:19:56 +0000 (17:19 -0500)]
Merge remote-tracking branch 'remotes/npigeon/ticket-601'

11 years agobumping image quality to 90, after conversation with Elrond
Christopher Allan Webber [Sat, 20 Apr 2013 16:03:48 +0000 (11:03 -0500)]
bumping image quality to 90, after conversation with Elrond

11 years agoBumping the default image quality up to 85.
Christopher Allan Webber [Sat, 20 Apr 2013 15:51:48 +0000 (10:51 -0500)]
Bumping the default image quality up to 85.

11 years agoimage quality can be set in config file
dunkyp [Sat, 20 Apr 2013 15:50:51 +0000 (10:50 -0500)]
image quality can be set in config file

(cherry-picked from
 https://gitorious.org/~dunkyp/mediagoblin/dunkyps-mediagoblin/commits/image_quality)

11 years agoRefactor test configs.
Elrond [Fri, 19 Apr 2013 22:24:09 +0000 (00:24 +0200)]
Refactor test configs.

All the hook_* tests use the same config, so refactor it.

11 years agoremoving old callable utilities and porting stuff over.
Christopher Allan Webber [Fri, 19 Apr 2013 21:51:14 +0000 (16:51 -0500)]
removing old callable utilities and porting stuff over.

11 years agoLet's not use reserved keywords :)
Christopher Allan Webber [Fri, 19 Apr 2013 21:31:23 +0000 (16:31 -0500)]
Let's not use reserved keywords :)

11 years agochanging the things to document in api.rst
Christopher Allan Webber [Fri, 19 Apr 2013 21:29:03 +0000 (16:29 -0500)]
changing the things to document in api.rst

11 years agoAdded new tests to test hook_transform()
Christopher Allan Webber [Fri, 19 Apr 2013 21:28:41 +0000 (16:28 -0500)]
Added new tests to test hook_transform()

11 years agowe should be returning the result, not None!
Christopher Allan Webber [Fri, 19 Apr 2013 21:28:24 +0000 (16:28 -0500)]
we should be returning the result, not None!

11 years agoAdjusting tests to use hook_handle and hook_runall
Christopher Allan Webber [Fri, 19 Apr 2013 21:16:26 +0000 (16:16 -0500)]
Adjusting tests to use hook_handle and hook_runall

11 years agofixing hook_handle for when result is never assigned, avoid reference without assignent
Christopher Allan Webber [Fri, 19 Apr 2013 19:58:22 +0000 (14:58 -0500)]
fixing hook_handle for when result is never assigned, avoid reference without assignent

11 years agoAs Elrond points out, we might as well .pop() default_handler
Christopher Allan Webber [Fri, 19 Apr 2013 19:25:02 +0000 (14:25 -0500)]
As Elrond points out, we might as well .pop() default_handler

11 years agoHooks: the Next Generation!
Christopher Allan Webber [Fri, 19 Apr 2013 18:56:05 +0000 (13:56 -0500)]
Hooks: the Next Generation!

I have not tested any of this but it looks right ;)

11 years agoA warning about the plugin API being unstable.
Christopher Allan Webber [Fri, 19 Apr 2013 18:22:03 +0000 (13:22 -0500)]
A warning about the plugin API being unstable.

11 years agoAnd... pyblosxom code removed again :)
Christopher Allan Webber [Fri, 19 Apr 2013 18:13:32 +0000 (13:13 -0500)]
And... pyblosxom code removed again :)

We agreed on a new direction on IRC last night...

11 years agopyblosxom run_callback hoisted
Christopher Allan Webber [Thu, 18 Apr 2013 22:03:25 +0000 (17:03 -0500)]
pyblosxom run_callback hoisted

11 years agoMoving the rest of the relevant tests to have test_app set up in "def setup()" as...
Christopher Allan Webber [Thu, 18 Apr 2013 16:15:47 +0000 (11:15 -0500)]
Moving the rest of the relevant tests to have test_app set up in "def setup()" as well

11 years agoat pytest author's advice, changing the way _setup back to -> setup
Christopher Allan Webber [Thu, 18 Apr 2013 15:53:00 +0000 (10:53 -0500)]
at pytest author's advice, changing the way _setup back to -> setup

They showed me how to use @pytest.fixture, which allowed us to pass the
test into setup!

11 years agopiwigo: Send NotImplemented for unknown methods.
Elrond [Fri, 29 Mar 2013 13:36:37 +0000 (14:36 +0100)]
piwigo: Send NotImplemented for unknown methods.

That's somewhat, what piwigo does.

11 years agoUse check_file_field in pwg_images_addSimple.
Elrond [Fri, 22 Mar 2013 15:07:07 +0000 (16:07 +0100)]
Use check_file_field in pwg_images_addSimple.

11 years agoStart to use six for basestring.
Elrond [Thu, 18 Apr 2013 13:53:09 +0000 (15:53 +0200)]
Start to use six for basestring.

six allows us to smoothly get more forward compatible with
py3.  The idea is to change things over to use six, when/if
we feel a need for it.

11 years agostl:blender_render() - Remove useless arg_string.
Elrond [Wed, 17 Apr 2013 20:08:10 +0000 (22:08 +0200)]
stl:blender_render() - Remove useless arg_string.

11 years agoFixing typo in calling render_http_exception
Christopher Allan Webber [Wed, 17 Apr 2013 15:03:33 +0000 (10:03 -0500)]
Fixing typo in calling render_http_exception

11 years agoppoppler -> poppler tyop fix
Christopher Allan Webber [Wed, 17 Apr 2013 12:41:00 +0000 (07:41 -0500)]
ppoppler -> poppler tyop fix

11 years agoTurning image's media manager into a new style class.
Elrond [Wed, 13 Mar 2013 21:38:28 +0000 (22:38 +0100)]
Turning image's media manager into a new style class.

images are the first media type to use the new style class
based media manager.

11 years agoAdd sniff_handler method to mediamanagers.
Elrond [Tue, 19 Mar 2013 11:42:28 +0000 (12:42 +0100)]
Add sniff_handler method to mediamanagers.

The MediaManagerBase gets a fallback "return False" one.
The Compat-Manager checks in the dict and calls that one or
returns False.

11 years agoAdd MediaManagerBase class.
Elrond [Tue, 19 Mar 2013 11:50:00 +0000 (12:50 +0100)]
Add MediaManagerBase class.

This is the base class for all new style class based media
managers.

11 years agoMediaManager: Use .foo instead of ['foo'].
Elrond [Fri, 8 Mar 2013 19:51:32 +0000 (20:51 +0100)]
MediaManager: Use .foo instead of ['foo'].

To make .media_fetch_order work, create a property.

11 years agoFirst step towards a MediaManager class: Compat one.
Elrond [Fri, 8 Mar 2013 13:37:33 +0000 (14:37 +0100)]
First step towards a MediaManager class: Compat one.

To get us moving towards a MediaManager class, the first
idea is to create a class that wraps our current dict based
manager and makes all users happy.

11 years agoupdate documentation for s/nose/py.test/
Alon Levy [Wed, 17 Apr 2013 08:23:37 +0000 (11:23 +0300)]
update documentation for s/nose/py.test/

Signed-off-by: Alon Levy <alon@pobox.com>
11 years agoPIL: Support systems with Pillow and without
Alon Levy [Mon, 8 Apr 2013 08:19:56 +0000 (11:19 +0300)]
PIL: Support systems with Pillow and without

Fixes for systems with Pillow, but leaves a "try: except ImportError" to
support anything that doesn't have a PIL top level import.

Signed-off-by: Alon Levy <alon@pobox.com>
11 years agopdf/processing.py: don't use check_output, only in python>=2.7
Alon Levy [Wed, 17 Apr 2013 07:47:02 +0000 (10:47 +0300)]
pdf/processing.py: don't use check_output, only in python>=2.7

Signed-off-by: Alon Levy <alon@pobox.com>
11 years agoRefactor test resources into new resources.py
Elrond [Mon, 15 Apr 2013 22:33:38 +0000 (00:33 +0200)]
Refactor test resources into new resources.py

11 years agoPDF: Use pytest.mark.skipif for skipping tests
Elrond [Mon, 15 Apr 2013 21:34:27 +0000 (23:34 +0200)]
PDF: Use pytest.mark.skipif for skipping tests

Instead of leaving test early if they can not run, use the
pytest.mark.skipif marked to tell the test system not to
even run the test.

This also adds to the stats, because skipped tests are
counted differently. Thus making it obvious, that some
tests did not run, because of any reason.

11 years agoSwitch to an apparently newer version of pdf.js per irc.mozilla.org #pdfjs recommenda...
Christopher Allan Webber [Tue, 16 Apr 2013 21:08:51 +0000 (16:08 -0500)]
Switch to an apparently newer version of pdf.js per irc.mozilla.org #pdfjs recommendations

11 years agoUpdating branch...
nattily pigeonfowl [Tue, 16 Apr 2013 20:28:04 +0000 (16:28 -0400)]
Updating branch...
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin into ticket-660

11 years agoChanged the max character length for tags on media to 255. Only had to change one...
nattily pigeonfowl [Tue, 16 Apr 2013 20:25:59 +0000 (16:25 -0400)]
Changed the max character length for tags on media to 255. Only had to change one line in mediagoblin/config_spec.ini
in response to isses.mediagoblin.org/ticket/601

11 years agoTransfered information from http://wiki.mediagoblin.org/Storage into docs/source...
nattily pigeonfowl [Tue, 16 Apr 2013 19:34:40 +0000 (15:34 -0400)]
Transfered information from wiki.mediagoblin.org/Storage into docs/source/devel/storage
For info check out ticket: issues.mediagoblin.org/ticket/660

11 years agotest_timesince() doesn't need a complete test_app.
Elrond [Mon, 15 Apr 2013 20:02:47 +0000 (22:02 +0200)]
test_timesince() doesn't need a complete test_app.

11 years agoRemoving unused imports
Christopher Allan Webber [Mon, 15 Apr 2013 20:55:24 +0000 (15:55 -0500)]
Removing unused imports

11 years agoRemoving unused imports and an unused media_files dict reference
Christopher Allan Webber [Mon, 15 Apr 2013 20:31:22 +0000 (15:31 -0500)]
Removing unused imports and an unused media_files dict reference

11 years agopdf: use pdf.js in an iframe
Alon Levy [Mon, 15 Apr 2013 20:01:59 +0000 (15:01 -0500)]
pdf: use pdf.js in an iframe

11 years agoadd pdf media type
Alon Levy [Wed, 27 Mar 2013 10:21:10 +0000 (12:21 +0200)]
add pdf media type

The new media type supports pdf and a subset of media recognized by libreoffice via
unoconv.

Every document added goes through:
* conversion to pdf with unoconv if not already a pdf
* creation of thumbnail and medium sized image, and pdfinfo generates
 some information (even for unoconv produces docs - should fix this)

Poppler (pdftocairo, pdfinfo) is used.  http://poppler.freedesktop.org/

A working but uglified pdf.js integration exists, which is enabled by
setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini)

Adds one test to the test_submission test suite, and another separate test_pdf suite.
The tests are only run if media_types.pdf.processing.check_prerequisites passes, so
the test suite will not require any extra package.

TODO: make test suite say 'skipped' in that case instead of just 'ok'

Signed-off-by: Alon Levy <alon@pobox.com>
11 years agodocument submodule usage
Alon Levy [Tue, 9 Apr 2013 22:30:01 +0000 (01:30 +0300)]
document submodule usage

Signed-off-by: Alon Levy <alon@pobox.com>
11 years agoMerge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber [Sun, 14 Apr 2013 01:21:14 +0000 (20:21 -0500)]
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin

11 years agoMerge remote-tracking branch 'refs/remotes/tsyesika/599-allow-email-login'
Christopher Allan Webber [Sun, 14 Apr 2013 01:11:11 +0000 (20:11 -0500)]
Merge remote-tracking branch 'refs/remotes/tsyesika/599-allow-email-login'

11 years agoMerge remote-tracking branch 'joar-github/oauth/refresh_tokens'
Nathan Yergler [Sat, 13 Apr 2013 22:54:18 +0000 (15:54 -0700)]
Merge remote-tracking branch 'joar-github/oauth/refresh_tokens'

This merges the patch for Issue #548.

11 years agoText-align the headers on the media panel to the left to avoid confusion
Christopher Allan Webber [Sat, 13 Apr 2013 19:12:25 +0000 (14:12 -0500)]
Text-align the headers on the media panel to the left to avoid confusion

Thanks to Tsyesika for pointing this out!

11 years agoAdding Jessica Tallon to AUTHORS!
Christopher Allan Webber [Sat, 13 Apr 2013 17:10:23 +0000 (12:10 -0500)]
Adding Jessica Tallon to AUTHORS!

11 years agoComment when/author link styling changes
Christopher Allan Webber [Sat, 13 Apr 2013 17:06:19 +0000 (12:06 -0500)]
Comment when/author link styling changes

11 years agoWhy not also display the times on when these media were created
Christopher Allan Webber [Sat, 13 Apr 2013 16:58:50 +0000 (11:58 -0500)]
Why not also display the times on when these media were created

11 years agoChanging translations to say "amount of time ago", basically
Christopher Allan Webber [Sat, 13 Apr 2013 16:57:16 +0000 (11:57 -0500)]
Changing translations to say "amount of time ago", basically

Previously they were just "amount of time"... I think this fits a bit better.

11 years agoMerge remote-tracking branch 'refs/remotes/tsyesika/394-fuzzy-timestamp'
Christopher Allan Webber [Sat, 13 Apr 2013 16:42:34 +0000 (11:42 -0500)]
Merge remote-tracking branch 'refs/remotes/tsyesika/394-fuzzy-timestamp'

11 years agoAllows you to use your username or email to login
Jessica T [Fri, 12 Apr 2013 21:07:44 +0000 (22:07 +0100)]
Allows you to use your username or email to login

11 years agoAdds the fuzzy timestamp to the admin panel too
Jessica T [Fri, 12 Apr 2013 01:38:24 +0000 (02:38 +0100)]
Adds the fuzzy timestamp to the admin panel too

11 years agoAdds the unit tests and removes useless function we don't use
Jessica T [Fri, 12 Apr 2013 00:40:15 +0000 (01:40 +0100)]
Adds the unit tests and removes useless function we don't use

11 years agoadding callable_runone and callable_runall to the docs
Christopher Allan Webber [Thu, 11 Apr 2013 21:57:11 +0000 (16:57 -0500)]
adding callable_runone and callable_runall to the docs

11 years agoAdds the timesince ability which fixes #394
Jessica T [Thu, 11 Apr 2013 21:37:48 +0000 (22:37 +0100)]
Adds the timesince ability which fixes #394

11 years agoMerge branch '637_friendlier_hooks'
Christopher Allan Webber [Wed, 10 Apr 2013 22:53:05 +0000 (17:53 -0500)]
Merge branch '637_friendlier_hooks'

11 years agoSwitch several functions over to using the new callable_run* tools!
Christopher Allan Webber [Wed, 10 Apr 2013 22:52:49 +0000 (17:52 -0500)]
Switch several functions over to using the new callable_run* tools!

11 years agoRemove unhandled_okay from kwargs if it's there before passing to functions.
Christopher Allan Webber [Wed, 10 Apr 2013 22:42:29 +0000 (17:42 -0500)]
Remove unhandled_okay from kwargs if it's there before passing to functions.

11 years agocallable hook convenience functions.. now work, and with tests!
Christopher Allan Webber [Wed, 10 Apr 2013 22:36:21 +0000 (17:36 -0500)]
callable hook convenience functions.. now work, and with tests!

 - Added three "callables" test plugins.
 - updated callable_runone to check for unhandled_okay in the kwargs
   dict.

All passing!

11 years agoOpen Source -> Free Software from the borrowed extlib repositories
Christopher Allan Webber [Wed, 10 Apr 2013 21:08:08 +0000 (16:08 -0500)]
Open Source -> Free Software from the borrowed extlib repositories

We're a GNU project, gotta get with the GNU world order ;)

11 years agoAdding some help about what to do if flup flakes out on you
Christopher Allan Webber [Wed, 10 Apr 2013 15:52:39 +0000 (10:52 -0500)]
Adding some help about what to do if flup flakes out on you

11 years agoFix sessions so they work across the site.
Christopher Allan Webber [Wed, 10 Apr 2013 15:08:09 +0000 (10:08 -0500)]
Fix sessions so they work across the site.

11 years agoMake session cookies more secure.
Elrond [Tue, 9 Apr 2013 20:49:11 +0000 (22:49 +0200)]
Make session cookies more secure.

1. Our session cookies only need to be available to http, so
   mark them appropiately.

2. Send the cookie to the subpath for mediagoblin.

And instantiate a session manager on the app, once.

11 years agoRemove the last traces of beaker.
Elrond [Tue, 9 Apr 2013 20:39:04 +0000 (22:39 +0200)]
Remove the last traces of beaker.

There were still some traces of beaker around:
- docs: replaced by reference to itsdangerous.
- paste configs: Wiped away.
- config_spec.ini: wiped.
- test_mgoblin_app.ini: also wiped.