Christopher Allan Webber
0553976187
Hook->hooks since there's more than one of them :)
2013-05-15 11:10:25 -05:00
Christopher Allan Webber
1344c561a0
Adding global context hooks & fixing method names->symbolic view names in docs
...
This commit sponsored by Sheila Miguez. Thanks Sheila!
2013-05-15 10:37:41 -05:00
Christopher Allan Webber
b312d2cd83
Added documentation on view specific hooks
...
This commit sponsored by Matthew Woodward. Thank you!
2013-05-14 16:09:55 -05:00
Christopher Allan Webber
5046ca2433
Documenting the test_modify_context and context_modified_app methods
2013-05-14 14:29:23 -05:00
Christopher Allan Webber
f7a5c7c78c
Fully working context hooks, both template/view and global level, with tests
...
Needs documentation though... that's coming next :)
This commit sponsored by Luca Tius. Thanks Luca!
2013-05-14 14:24:27 -05:00
Christopher Allan Webber
725404236e
Merge branch 'master' into 623_context_hooks
2013-05-12 16:17:35 -05:00
Christopher Allan Webber
2dee97ef48
Removing reference to nose (thanks for catching, Elrond!)
...
This commit sponsored by Kevin McCarthy. Thank you!
2013-05-12 16:07:28 -05:00
Christopher Allan Webber
a98c95b41d
Tests should no longer use the environment-variable-related-setup and set up in app instead
...
This should remove a bunch of confusing cruft. I hate using that
environment variable! Also that old code was fragile.
This commit sponsored by Stephen Milton. Thanks!
2013-05-12 15:55:59 -05:00
Christopher Allan Webber
8145547437
Making the uncomment-able db string match the one that we use in the install docs
...
This commit sponsored by Denise Merkel. Thanks, Mom! Happy Mother's Day!
2013-05-12 11:46:38 -05:00
Christopher Allan Webber
33ddf4b1ef
Moving the get_original_date method over to the MediaManager.
...
This fixes a bug so that it doesn't explode if the media_data doesn't
exist.
This commit sponsored by Ole-Morten Duesund. Thank you!
2013-05-11 17:02:26 -05:00
Christopher Allan Webber
34d304441d
Updated "created on" feature to reflect new "hover for real time" tooling
2013-05-11 13:56:02 -05:00
Christopher Allan Webber
058226d0d2
Merge remote-tracking branch 'refs/remotes/tryggvib/532-exif-creation-date'
...
Conflicts:
mediagoblin/config_spec.ini
mediagoblin/templates/mediagoblin/user_pages/media.html
2013-05-11 13:48:42 -05:00
Christopher Allan Webber
aac428bac2
Merge remote-tracking branch 'gabithume/146_debug_message'
2013-05-11 10:19:31 -05:00
Christopher Allan Webber
98dacfe67e
Use the controller's symbolic/lookup name as part of the key for context hooks
...
This commit sponsored by David Collins. Thank you!
2013-05-10 20:26:55 -05:00
Christopher Allan Webber
e39feb041b
Merge branch 'master' into 623_context_hooks
2013-05-10 20:19:16 -05:00
Christopher Allan Webber
94fadafe09
Merge remote-tracking branch 'refs/remotes/dthompson/453_disable_comments'
2013-05-10 16:33:52 -05:00
Christopher Allan Webber
0dfa20c984
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
2013-05-10 11:26:55 -05:00
Christopher Allan Webber
fcfcd1f8a3
Merge remote-tracking branch 'refs/remotes/merge-requests/47'
2013-05-10 11:23:36 -05:00
Elrond
f035ec3db4
piwigo: Better logging for login.
2013-05-09 00:21:03 +02:00
Elrond
665946033e
piwigo: Let getStatus return the current user.
...
If there is a user logged in, show his name.
2013-05-09 00:21:03 +02:00
Elrond
7fb419ddd2
Create new session system for piwigo plugin.
...
Using the brand new itsdangerous sessions to power the
sessions for piwigo.
The real point is: Clients want to have the session in a
"pwg_id" cookie and don't accept any other cookie name.
2013-05-09 00:21:03 +02:00
Elrond
c1df8d1963
piwigo: Add .images.add including form handling.
...
To make things a bit easier, switch to WTForms
for validating the received data.
2013-05-09 00:15:11 +02:00
Elrond
180a008100
piwigo: Remove possibly_add_cookie.
...
This one was a fake thing to make clients happy.
Real sessions coming sonn.
2013-05-09 00:14:05 +02:00
Christopher Allan Webber
e5cdd74294
Fix the new config "plugin spec" loading code so it doesn't break on no plugins section
2013-05-08 15:21:15 -05:00
Christopher Allan Webber
230b5eb2eb
Fixing API setup with new plugin "config spec" world
...
It shouldn't reference the config until in the setup_plugin() method,
else there's a race condition.
2013-05-08 15:20:27 -05:00
Christopher Allan Webber
829f5f9371
Ah right, and here's the config we intend to use for these context modified tests :)
...
This commit sponsored by Xavier Gulliot. Thanks Xavier!
2013-05-08 14:38:13 -05:00
Christopher Allan Webber
3810309443
The beginning of context hooks.
...
Not the working solution, but getting there conceptually. Basically
we'll have a key with the view and the template as a tuple which is
the context hook that anyone can attach to.
However, some changes have still to be made:
- The unit test doesn't work yet and contains a set_trace ;)
- We'll probably switch the "view" component from being the callable
to the "urlgen"'able name per Elrond's suggestion
- Found a bug in unit tests related to running custom apps for
different configs... hm. I need to fix this!
Nonetheless, making progress.
This commit sponsored by... wait a minute... Christopher Webber?!
2013-05-08 14:35:31 -05:00
Christopher Allan Webber
f65bf89836
Documenting plugin configuration
...
This commit sponsored by David Krupicz. Thanks, David!
2013-05-08 11:03:09 -05:00
Christopher Allan Webber
d3604e2920
Unit tests for plugins defining their own config_spec.ini!
...
This commit sponsored by David Ahmed. Thank you!
2013-05-08 11:02:53 -05:00
Christopher Allan Webber
7fadc33b80
Allow plugins to install their own config_spec.ini if they like.
...
This commit sponsored by Timothy Vollmer. Thanks Tim!
2013-05-08 11:02:20 -05:00
Joar Wandborg
1422cab669
Removed unused imports in httpapiauth
2013-05-05 22:24:34 +02:00
Elrond
fc45b38626
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.
2013-05-05 14:29:57 +02:00
Elrond
d13cd99483
Fix typo in new stl MEDIA_MANAGER.
2013-05-02 23:38:07 +02:00
Elrond
7eec77ca90
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().
2013-04-30 23:44:56 +02:00
Praveen Kumar
761389507d
Make all media types use the new MediaManager classes.
2013-04-30 22:09:25 +02:00
Gabi Thume
98ce23d204
Fixing ticket #146 - Make messaging system testable
2013-04-29 20:35:22 -07:00
Elrond
b835e15319
Add warning about crypt/itsdangeroussecret.bin.
...
You should not leak that file, really.
2013-04-30 00:26:06 +02:00
Elrond
2e6ee596ad
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.
2013-04-28 23:09:20 +02:00
Elrond
8f88b1f6dc
Rewrite resize_image to use proc_state.store_public.
...
This hopefully makes the code nicer and easier to change.
2013-04-27 17:25:39 +02:00
Elrond
3b359dddc7
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.
2013-04-27 17:19:50 +02:00
Elrond
f96c284e0a
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.
2013-04-27 17:02:37 +02:00
Elrond
adf53036a5
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.
2013-04-27 15:08:42 +02:00
Elrond
2041ceae1f
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.
2013-04-27 15:08:07 +02:00
Christopher Allan Webber
90e7fc6738
word-wrapping the public/queue storage explainations in storage.rst
2013-04-26 16:13:05 -05:00
Christopher Allan Webber
c4771d7247
Merge remote-tracking branch 'refs/remotes/npigeon/ticket-660'
2013-04-26 16:08:39 -05:00
Christopher Allan Webber
ea5fb2d9d4
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
2013-04-26 15:27:44 -05:00
Christopher Allan Webber
313b38f895
Don't turn on sqlite refcheck stuff during migrations
2013-04-26 15:09:03 -05:00
Christopher Allan Webber
d6251b29ec
Merge remote-tracking branch 'refs/remotes/rodney757/issue643' into mergetest
2013-04-26 11:12:46 -05:00
Rodney Ewing
226f1771e2
Removed an unused import
2013-04-26 07:32:39 -07:00
Elrond
d891966424
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.
2013-04-25 14:31:29 +02:00