| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
It shouldn't reference the config until in the setup_plugin() method,
else there's a race condition.
|
|
|
|
| |
This commit sponsored by David Krupicz. Thanks, David!
|
|
|
|
| |
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().
|
| |
|
|
|
|
| |
You should not leak that file, really.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|\ |
|
| |\
| | |
| | |
| | | |
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin into ticket-660
|
| | |
| | |
| | |
| | |
| | |
| | | |
docs/source/devel/storage
For info check out ticket: issues.mediagoblin.org/ticket/660
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
Signed-off-by: Alon Levy <alon@pobox.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | |
| | |
| | |
| | | |
Well, get the config into a local variable, for easier access.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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().
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
change one line in mediagoblin/config_spec.ini
in response to isses.mediagoblin.org/ticket/601
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
(cherry-picked from
https://gitorious.org/~dunkyp/mediagoblin/dunkyps-mediagoblin/commits/image_quality)
|
| | |
| | |
| | |
| | | |
All the hook_* tests use the same config, so refactor it.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
without assignent
|