Commit graph

2631 commits

Author SHA1 Message Date
Karl Hobley
16db4fdc7e Added get_context method to Pages 2014-03-13 19:44:11 +00:00
Karl Hobley
1cb7dcb0b2 Added ajax_template and get_template method to Pages 2014-03-13 19:42:53 +00:00
Dave Cranwell
3eeb38183c removed unused load of gravatar 2014-03-13 17:24:39 +00:00
Dave Cranwell
7ec990b23e added page type column to pages awaiting moderation on dashboard 2014-03-13 17:24:07 +00:00
Dave Cranwell
c5e4dd94c4 removed unused import of edit_bird (now userbar) 2014-03-13 17:20:55 +00:00
Dave Cranwell
5b02395667 page status tags on homepage 'recent edits' list now link through to live pages, when appropriate 2014-03-13 17:03:38 +00:00
Dave Cranwell
5a4caabd44 clicking user bar buttons now redirects parent page 2014-03-13 16:47:20 +00:00
Dave Cranwell
637899f6c2 implemented moderation user buttons the same as edit button 2014-03-13 16:20:53 +00:00
Dave Cranwell
edd757c578 first commit of karl's code, refactored to appear within an iframe 2014-03-13 15:04:17 +00:00
Neal Todd
6ee66b5a7d Heading fix 2014-03-13 10:52:23 +00:00
Neal Todd
1a47bc6f61 Added docs for removing the demo app to complement the Debian/Ubuntu installs. 2014-03-13 10:49:36 +00:00
Neal Todd
46a00aa269 Updated Getting Started
(plus random query string on PyPI badge to purge github CDN cache of 0.1)
2014-03-13 10:21:56 +00:00
Dave Cranwell
d90762bc71 styling icons in front of headings in header bar 2014-03-13 09:49:31 +00:00
Karl Hobley
4e67491bda Edit bird now checks if the user has permission to access admin and edit the page before displaying edit page option 2014-03-12 16:53:43 +00:00
Karl Hobley
91faf4fd5f Edit bird: Clean up render method of EditPageItem 2014-03-12 16:03:21 +00:00
Karl Hobley
cf759dbb2f Don't render edit bird if user is not logged in 2014-03-12 15:40:34 +00:00
Karl Hobley
ffeb98b03c Removed disable_cache from wagtail_edit_bird_tag
This was used to disable caching when the edit bird was rendered.
It is no longer needed.
2014-03-12 14:05:56 +00:00
Karl Hobley
ee5d6b8a2c Added edit bird to moderation views 2014-03-12 13:59:54 +00:00
Karl Hobley
9012baccf1 Added edit bird 2014-03-12 13:59:13 +00:00
Serafeim Papastefanos
4cc53eb4c9 Refactor backend names to pillow and wand
This uses absolute_import and refactors the backend names to pillow &
wand. It changes tests to use these names and also modified the test
runner to not pass any parameters concerning the image backends since the
defaults are enough for tests. It also fixes a minor bug that was occured
when the image file had already been read (multiple renditions in a single
page)
2014-03-12 14:41:26 +02:00
Serafeim Papastefanos
a72a67d50c Remove image backends config from runtests.py
It is not needed since Pillow is the default and get_backend works with
full package name.
2014-03-12 14:11:13 +02:00
Serafeim Papastefanos
9eba6d9a3a Split tests to use Pillow and Wand backend 2014-03-12 12:39:44 +02:00
Serafeim Papastefanos
7911d46054 Remove not needed image_ops.py 2014-03-12 12:22:12 +02:00
Neal Todd
d3adc33453 Back to pip wand
Travis VM can't find the python-wand apt-package. But the VM does include ImageMagick automatically so see if this is enough or whether libmagickwand-dev apt package is needed for any other dependencies.
2014-03-12 10:17:40 +00:00
Neal Todd
66c35c1cca Apt installs do need to run with sudo 2014-03-12 10:06:34 +00:00
Neal Todd
8573dde60e Use python-wand apt package for testing
which includes all dependencies (e.g. ImageMagick)
2014-03-12 09:56:27 +00:00
Neal Todd
3c6f76af5e Bumping Django version to 1.6.2 and adding Wand package 2014-03-12 09:45:45 +00:00
Serafeim Papastefanos
2dd75ec601 Fix minor error with runtests.py 2014-03-12 10:16:05 +02:00
Serafeim Papastefanos
fca4ad2056 Make pillow the default backend 2014-03-11 23:07:10 +02:00
Serafeim Papastefanos
37b37a0707 Add tests for backends 2014-03-11 21:54:27 +02:00
Serafeim Papastefanos
8aeed6a16e Allow configurable image backend 2014-03-11 21:53:50 +02:00
Serafeim Papastefanos
1fe4f08866 Add test configuration for image backends 2014-03-11 21:49:10 +02:00
Serafeim Papastefanos
db65b22d5a Fix minor bug with crop 2014-03-11 19:49:01 +02:00
Tom Dyson
dc2147013a auto doc builder notes 2014-03-11 17:39:13 +00:00
Tom Dyson
71c78a53d6 Roadmap update and auto doc builder 2014-03-11 17:39:13 +00:00
Matt Westcott
7b7e1dfe17 prepare to release 0.2 2014-03-11 16:40:04 +00:00
Matt Westcott
affec1ea59 Merge branch 'master' of github.com:torchbox/wagtail 2014-03-11 13:06:50 +00:00
Matt Westcott
4c80816e82 Add rfosterslo as contributor 2014-03-11 13:06:26 +00:00
Matt Westcott
99887a83a2 Merge branch 'bpcp-fix' of https://github.com/rfosterslo/wagtail into rfosterslo-bpcp-fix 2014-03-11 13:01:23 +00:00
Tom Dyson
62d5e658d1 OS X installation instructions 2014-03-11 12:11:47 +00:00
Matt Westcott
7e6401dc2c Merge branch 'master' of github.com:torchbox/wagtail 2014-03-11 11:28:34 +00:00
Matt Westcott
126de02ede repair collateral damage from a hail of bullet points 2014-03-11 11:28:21 +00:00
Matt Westcott
80622c73d0 Specify Django 1.6 only in requirements (1.7 is going to require compatibility fixes) 2014-03-11 11:26:48 +00:00
Tom Dyson
9a08829e49 Roadmap page in docs 2014-03-11 11:20:26 +00:00
Tom Dyson
c67c51c5fc Better docs docs
Link to online rst editor.
2014-03-11 11:01:04 +00:00
Matt Westcott
b6dddc256e Merge pull request #137 from spapas/master
Add new translations & remove some stale message.mo files
2014-03-11 10:26:09 +00:00
Tom Dyson
8609361ed4 Docs docs
How to author and build Wagtail docs
2014-03-11 10:10:04 +00:00
Serafeim Papastefanos
11400e3df7 Add image processing backends
This is a first version of Wagtail wit support for image processing
backends. A first refactoring of image processing code has been done,
moving the image processing code to the wagtailimages/backends package and
changing models.py (more specifically, the process_image method of Filter
model) to use the code there.

The backends package contains the __init__.py module which defines the
get_image_backend method that will get the correct image backend based on
the passe parameer (or default if not parameer is passed) and the
WAGTAILIMAGES_BACKENDS option. The code is copie with small modifications
from similar code in wagtailsearch/backends package.

Concerning the backends, a BaseImageBackend is defined in the base module.
This interface defines a number of methods that the backends inheriting
from it should implement. The only methods that need to be implemented is
open_image, save_image, resize and crop_to_centre. The other methods are
more or less the same (if the image object provides a size attribute).

The two backends, wand_backend and pillow_backend provide implementations
for Pillow and Wand. Both seem to be working but Wand needs some more
testing.

To be able to wand, we have to install Wand + ImageMagick. Follow the
instructions here: http://docs.wand-py.org/en/0.3.5/guide/install.html.

Things to do next:

a. Check again the API that BaseImageBackend exposes -- it's not very
intuitive and some things should be more DRY

b. Find out a method of choosing the backend from the outside world - we
may have an Image class that we want to render with Wand and another class
that we want to render with Pillow.

c. Assert that crop_to_centre method works fine also.

d. Check resize filters of Wand (Imagemagick)

e. Make tests pass with both Pillow and Wand backends
2014-03-11 00:21:00 +02:00
Serafeim Papastefanos
24b0712fc1 Use unidecode to improve image filenames (fix#136)
Image filenames containing non ascii characters would be translated to a
series of underscores (____.png). To fix this, we use the unidecoe library
(which we also add to the required packages for Wagtail) which translates
each unicode character to an ascii equivalent.

For more info on how unidecode works please check @Evgeny's answer at this
question:

http://stackoverflow.com/questions/702337/how-to-make-django-slugify-work-properly-with-unicode-strings
2014-03-10 17:17:57 +02:00
Serafeim Papastefanos
e50b0fc0bb Add new translations 2014-03-10 12:33:09 +02:00