| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | | |
This commit sponsored by Christian Frank. Thank you!
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This first test checks the session logic of the piwigo
plugin. login, logout, getStatus.
|
| |_|/
|/| |
| | |
| | |
| | | |
wtforms.validators.Optional doesn't take an argument.
I don't know, why I gave it one.
|
| | |
| | |
| | |
| | | |
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.
|
|\ \ \ \
| |_|_|/
|/| | | |
|
| | | | |
|
|\ \ \ \ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | |
| | | |
| | | |
| | | | |
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__.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Setting up a new template env should not directly touch the
translation tools, but go through a function in
translations.py.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
- entry: not used, removed.
- proc_state: going to be used, added.
- size_limits: not used, removed.
|