0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 08:48:04 +01:00
Commit Graph

228 Commits

Author SHA1 Message Date
Neal Todd
22e1f75684 Initial Travis CI configuration to test the CI setup itself. 2014-02-14 12:03:29 +00:00
Karl Hobley
3a1909be9f Merge pull request #40 from kaedroho/master
Added requests to requirements
2014-02-14 11:30:58 +00:00
Karl Hobley
7b2eb66e2c Added requests to requirements 2014-02-14 11:28:05 +00:00
Karl Hobley
40fc90e6fc Merge pull request #38 from peterarenot/master
Redirect from login view if user already logged in
2014-02-14 10:27:16 +00:00
Karl Hobley
054f9ec709 Merge pull request #37 from kaedroho/feature/embeds-tweaks
Added 'embed finders'. Cleaned up wagtail embeds
2014-02-14 10:22:52 +00:00
Peter Arnott
193b75e152 Change login view to the login_wrapper view 2014-02-14 18:59:08 +11:00
Peter Arnott
4f914fdc57 Create login_wrapper view
Redirect the user if they are already logged in.
2014-02-14 18:51:18 +11:00
Karl Hobley
f2ca7426ec Added 'embed finders'. Cleaned up wagtail embeds 2014-02-13 23:15:07 +00:00
Tom Dyson
05e4e52408 Change tutorial link to Serafeim's blog 2014-02-13 22:54:11 +00:00
Dave Cranwell
a819527cab Update README.rst 2014-02-13 16:56:38 +00:00
Dave Cranwell
d08ef04dcb unified search in header bar. still todo: searches in modals 2014-02-13 16:51:11 +00:00
Dave Cranwell
1e0d63ee72 password inputs should reflect errors too 2014-02-13 16:00:38 +00:00
Dave Cranwell
d57b9e239b Merge branch 'master' of github.com:torchbox/wagtail 2014-02-13 15:47:29 +00:00
Dave Cranwell
8daf6b3407 added user searching 2014-02-13 15:47:19 +00:00
Tom Dyson
c397a62d49 Update README.rst with link to @spapas's tutorial 2014-02-13 15:33:53 +00:00
Matt Westcott
1e932c0b0b fix typo in emed_filters typo 2014-02-13 14:44:05 +00:00
Matt Westcott
ddd4b8a9c1 temporarily disable outdated wagtailembeds test 2014-02-13 12:55:08 +00:00
Matt Westcott
e419cc0618 ensure that test-static gets torn down even if tests fail 2014-02-13 12:53:52 +00:00
Matt Westcott
f1e9a4703d apparently we don't need imports in tests/__init__.py 2014-02-13 12:53:18 +00:00
Matt Westcott
069ff69335 Merge branch 'master' of github.com:torchbox/wagtail 2014-02-13 12:44:57 +00:00
Matt Westcott
a77977a31c add a general test runner for wagtail, accessible by running './runtests.py' or 'make test' from the wagtail repo, or 'manage.py test wagtail' from a django project such as wagtaildemo 2014-02-13 12:44:49 +00:00
Karl Hobley
a0f09e1990 Merge remote-tracking branch 'torchbox/master'
Conflicts:
	setup.py
2014-02-13 12:24:16 +00:00
Tom Dyson
7d4696c83a Tree support in feature list. 2014-02-13 12:08:43 +00:00
Tom Dyson
a51e609f3f Update README.rst with feature list 2014-02-13 11:41:56 +00:00
Matt Westcott
e3c6987a0f Merge branch 'master' of github.com:torchbox/wagtail 2014-02-13 11:00:40 +00:00
Matt Westcott
02e99b9e58 remove stray print statement from gravatar tag 2014-02-13 11:00:05 +00:00
Matt Westcott
a48cbd68e2 update requirements in setup.py 2014-02-13 10:53:58 +00:00
Serafeim Papastefanos
ead0ebeb4e Remove embedly from setup.pu requirements 2014-02-13 04:09:18 +02:00
Serafeim Papastefanos
74b9f43401 Make embedly optional and refactor code
This fixes #26. First of all there is some refactoring: All low level
embed functions have been moved to the wagtail.wagtailembeds.embeds
package. There you will see:

. embed.py (which is more or less a copy of the old embeds.py)
. oembed_api.py which includes some low level code for using embedding
with the help of oembed, without any external dependencies (python-oembed
was not working very well and since oembed is just a URL get to a specific
URL I implemented it with urllib2 and json),
. endpoints.json which is a list of oembed endpoints I got from
https://github.com/panzi/oembedendpoints/blob/master/endpoints-regexp.json
. unittests.py with some tests to check that well known sites like
youtube, vimeo etc work fine with the oembed_api

The code refactoring also includes a number of exceptions. The get_embed
function now is included in try / except blocks and if an exception occurs
then the output will be an emtpy string (this was the behavior before the
refactor). However, in the chooser.py function the type of the exception
will be checked and a nice message will be shown to the editor.

Finally, to choose between embedly and the oembed a check is made to see
if the embedly library has been installed and also check if EMBEDLY_KEY
has been set in the settings. If these two checks are both true then the
get_embed will be assigned to get_embed_embedly -- else it will be
assigned to get_embed_oembed.
2014-02-13 04:01:51 +02:00
Serafeim Papastefanos
0ddc5a6ff6 Added the endpoints.json and modified embeds.py
Now embeds.py has the infrastructre to select a different get_embed
function depending on if embedly should be used or not.

the different get_embed (get_embed_oembed) function should be written
now...
2014-02-12 22:21:18 +02:00
Tom Dyson
be67b59b07 Update README.rst
link to wagtaildemo and make t-shirt promise.
2014-02-12 18:21:16 +00:00
Matt Westcott
2f13e5211a stylistic tweaks to b7158bb3fa (camel case for js vars; using a dict rather than adding vars indefinitely to the window scope; avoiding potentially dynamic code inside compress blocks) 2014-02-12 12:26:06 +00:00
Matt Westcott
d9219a8515 Merge branch 'master' of https://github.com/spapas/wagtail into spapas-master 2014-02-12 12:10:44 +00:00
Karl Hobley
9c1875d06d Merge pull request #32 from kaedroho/feature/search-unit-tests
Wagtailsearch unit tests
2014-02-12 11:07:45 +00:00
Dave Cranwell
51a16a0758 further tweaks to text size in explorer 2014-02-12 11:07:14 +00:00
Karl Hobley
1600e93491 More wagtailsearch unit tests 2014-02-12 10:50:23 +00:00
Karl Hobley
f643c78053 Tweaks to the search frontend views 2014-02-12 10:49:31 +00:00
Serafeim Papastefanos
b7158bb3fa Removes hard coded links to /admin
The _editor_js.html page has been modified in order to get the urls to the
various views through the {% url %} tag and add them to the global window
variable. I believe that this is actually the best solution in our case
and I like it much better than the other available options.
2014-02-12 11:03:47 +02:00
Tom Dyson
594d7e03e3 Update CONTRIBUTORS 2014-02-11 17:16:12 +00:00
Karl Hobley
e32ab5b7c5 Merge pull request #29 from kaedroho/feature/search-backends
Multiple backend support in wagtailsearch
2014-02-11 16:52:46 +00:00
Karl Hobley
fd95cc0517 Fixed crash when tests are run without WAGTAILSEARCH_BACKENDS setting set 2014-02-11 16:18:47 +00:00
Matt Westcott
d95daa5d57 remove celery from requirements in setup.py 2014-02-11 16:13:08 +00:00
Karl Hobley
03e70df24f Merge branch 'feature/search-tests' into feature/search-backends 2014-02-11 15:33:32 +00:00
Karl Hobley
e40265cf40 Search: test retrieval of results 2014-02-11 15:30:55 +00:00
Karl Hobley
a3463c9787 More unit tests changes 2014-02-11 15:22:11 +00:00
Karl Hobley
c809565217 Search: Use self.stdout.write for messages in management commands 2014-02-11 15:21:54 +00:00
Karl Hobley
c159e273f9 Added multi backend support into searcher 2014-02-11 15:21:21 +00:00
Serafeim Papastefanos
a2319a897a Modified tasks.py to use celery only if available
Please see the comments inside tasks.py.
TL;DR: Defines a fake "task" decorator - the fake
decorator was needed to add the delay() attribute
to the send_notification function
2014-02-11 16:48:53 +02:00
Karl Hobley
9db3e1ce5b More improvements to unit tests 2014-02-11 14:29:36 +00:00
Karl Hobley
cb1a412c3c DB backend now doesnt attempt to search on callable fields 2014-02-11 14:28:47 +00:00