| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
This allows for modifying any context *right before render*, including
access to the variables that are passed in. This test takes advantage
of that and takes one of the variables, "doubleme", and modifies
it (doubles it!)
In our case it turns "happy" and "joy" into "happyhappy" and "joyjoy".
This commit sponsored by Mark Holmquist. Thank you!
|
|
|
|
|
|
| |
"template_context_prerender" :)
This commit sponsored by William Goudie. Thanks Bill! :)
|
| |
|
|
|
|
|
|
| |
Needs documentation though... that's coming next :)
This commit sponsored by Luca Tius. Thanks Luca!
|
|\ |
|
| |
| |
| |
| | |
This commit sponsored by Kevin McCarthy. Thank you!
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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!
|
| |
| |
| |
| |
| |
| |
| | |
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!
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | | |
Conflicts:
mediagoblin/config_spec.ini
mediagoblin/templates/mediagoblin/user_pages/media.html
|
| | | |
|
| | |
| | |
| | |
| | | |
function)
|
| | |
| | |
| | |
| | | |
as a configurable option 'original_date_visible' (default false). Since the EXIF tag is a string with the date formatted as 'YYYY:MM:DD HH:MM:SS' the fix slices the string to give only the date and then replaces : by - to conform with the 'Added on' date.
|
| |\ \ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This commit sponsored by David Collins. Thank you!
|
|\| | | |
|
| |\ \ \ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
If there is a user logged in, show his name.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
To make things a bit easier, switch to WTForms
for validating the received data.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This one was a fake thing to make clients happy.
Real sessions coming sonn.
|
| | | | |
| | | | |
| | | | |
| | | | | |
plugins section
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
It shouldn't reference the config until in the setup_plugin() method,
else there's a race condition.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
tests :)
This commit sponsored by Xavier Gulliot. Thanks Xavier!
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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?!
|
| | | |
| | | |
| | | |
| | | | |
This commit sponsored by David Ahmed. Thank you!
|
| | | |
| | | |
| | | |
| | | | |
This commit sponsored by Timothy Vollmer. Thanks Tim!
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
An uninstantiated bare media manager doesn't any more
support ["something"]. You need to do .something.
Fixed for .source_type().
|
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
This hopefully makes the code nicer and easier to change.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | | |
cleaner
Also, if migrations is true, *explicitly* say that foreign key checking is off
|
| | | |
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
constraint to collection.slug model
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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__.
|