Commit graph

939 commits

Author SHA1 Message Date
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
Serafeim Papastefanos
eea23674bf Remove not needed messages.mo files from tree 2014-03-10 12:21:04 +02:00
rfosterslo
2c79a3db25 Fixed BasePageChooserPanel.render_js()
Addresses the "ForeignKey null=False" issue; new instances were throwing an exception, which prevented the edit handler from rendering the proper JavaScript in _editor_js.html.
2014-03-07 16:20:00 -08:00
Matt Westcott
7688763aa2 Merge branch 'master' of github.com:torchbox/wagtail 2014-03-07 17:27:13 +00:00
Matt Westcott
5e7571486b added changelog entry for 0.2 2014-03-07 17:27:07 +00:00
Dave Cranwell
9bc41a7b01 added icons to all interfaces where possible 2014-03-07 16:52:04 +00:00
Dave Cranwell
462ed39837 subtle usability updates and icons etc 2014-03-07 15:41:17 +00:00
Dave Cranwell
a2a06c116a Merge branch 'sass' 2014-03-07 12:28:54 +00:00
Dave Cranwell
e3e69638ae auto-focus on search boxes. activity spinner added 2014-03-07 12:27:34 +00:00
Dave Cranwell
9d5de6185a Merge branch 'sass' of github.com:torchbox/wagtail into sass 2014-03-07 11:22:58 +00:00
Tom Dyson
f1680169d4 Updated install docs
referencing Debian and Ubuntu one-liners and removing Less / npm
2014-03-06 16:30:33 +00:00
Tom Dyson
5df8eb5680 Ubuntu install now works on 13.04
Since removal of npm dependency.
2014-03-06 15:50:05 +00:00
Matt Westcott
0526428c1d Merge branch 'sass' 2014-03-06 14:20:08 +00:00
Matt Westcott
e5e3f000ad Remove all reference to less/npm in docs and install scripts 2014-03-05 20:05:26 +00:00
Matt Westcott
f8fae0d968 specify django-libsass as a dependency 2014-03-05 20:02:54 +00:00
Matt Westcott
f6645d4c5b Merge branch 'master' into sass 2014-03-05 19:53:27 +00:00
Neal Todd
cff1980891 Updating init.d script link now that it's in the repo. 2014-03-05 14:10:06 +00:00
Neal Todd
a19459e1b2 Updated ubuntu and adapted debian install scripts for Wagtail production configuration instance on a fresh box. Accompanying uwsgi init.d script for debian. npm/less to be removed and init.d script location to be updated. 2014-03-05 13:58:39 +00:00
Tom Dyson
5ef4f0b07a Updated Ubuntu version for installation script 2014-03-04 22:24:59 +00:00
Dave Cranwell
7cdd021ffd Merge branch 'master' into sass 2014-03-04 17:41:55 +00:00
Tom Dyson
00837af131 Trim Ubuntu installation
Remove aptitude update - we don't have to manage their server setup - and recently-redundant coffeescript.
2014-03-04 17:23:42 +00:00
Tom Dyson
6b97e90eb0 Ubuntu installation script
Production Wagtail one-liner for clean Ubuntu 13.04 boxes
2014-03-04 17:10:12 +00:00
Dave Cranwell
711cc045bb removed transitions on chooser, it looks sloppy and delayed in what should be a quick forgettable interface 2014-03-04 17:03:48 +00:00
Dave Cranwell
5c26ef2709 status tags shouldn't be linked when choosing OR moving 2014-03-04 16:54:12 +00:00
Dave Cranwell
9c14d41e9b replaced coffeescript js with compiled, vanilla js 2014-03-04 16:45:13 +00:00
Matt Westcott
4f807cb4e2 Add page permission tests (and fix the ever-so-subtle bug in preventing moves into a descendant page) 2014-03-04 15:47:16 +00:00
Matt Westcott
bd71eec0d5 use self.client instead of creating our own instance 2014-03-04 14:43:49 +00:00
Matt Westcott
036837d50b add end-to-end tests for wagtailcore's 'serve' view 2014-03-04 12:01:56 +00:00
Matt Westcott
ecad517c62 Change Page.serve to return a TemplateResponse so that we can perform more targetted tests on it 2014-03-04 11:50:37 +00:00
Matt Westcott
9888920762 add tests for page routing 2014-03-04 11:06:22 +00:00
Dave Cranwell
15a81d5165 various syntactic updates that sass requires 2014-03-03 18:07:25 +00:00
Dave Cranwell
257f892821 merged less changes since sass branch last pushed 2014-03-03 17:56:24 +00:00
Matt Westcott
69b30d85c8 tests for Site.find_for_request 2014-03-03 17:01:26 +00:00
Matt Westcott
2851e3fea1 Add test fixtures and tests for URL construction in wagtailcore 2014-03-03 15:50:45 +00:00
Matt Westcott
d7e5c33c1a Refactor wagtailsearch tests so that WAGTAILSEARCH_BACKENDS in runtests.py is the definitive list of which backends should be tested 2014-03-03 12:33:14 +00:00
Matt Westcott
20efde84d7 Bring CONTRIBUTORS.rst up to date (I hope!) 2014-03-03 10:05:57 +00:00
Dan Braghis
760ba6a856 Fix typo in contributors 2014-03-03 09:56:27 +00:00
Neal Todd
d759dab92e Updated translation contributors. 2014-03-03 09:53:00 +00:00
Matt Westcott
2369bd79e1 Merge branch '115-require-admin-access-on-account-views' of https://github.com/delgermurun/wagtail into delgermurun-115-require-admin-access-on-account-views 2014-03-03 09:31:18 +00:00
Karl Hobley
c87e71b472 Merge pull request #117 from kaedroho/tests
Tests
2014-03-03 09:10:11 +00:00
Karl Hobley
7eedf42982 Merge pull request #116 from kaedroho/cleanup
Cleanup
2014-03-03 09:09:02 +00:00
Delgermurun
d6ad030fd5 add wagtailadmin.access_admin permission required to admin account views. fixes #115 2014-03-03 08:14:25 +08:00
Karl Hobley
05dab92c60 Added tests for wagtailusers 2014-03-02 21:05:06 +00:00