0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
Commit Graph

3598 Commits

Author SHA1 Message Date
Karl Hobley
5a3431c9c3 Merge pull request #986 from kaedroho/docs
Getting started docs changes
2015-02-16 10:29:14 +00:00
Karl Hobley
e6da637256 Changed ports to 8000 2015-02-16 10:28:39 +00:00
Karl Hobley
f52203ec39 Added wagtaildemo section back 2015-02-16 10:27:17 +00:00
Karl Hobley
88753e4370 Installation docs 2015-02-16 10:27:17 +00:00
Karl Hobley
495c834ff0 Added "Trying wagtail" page 2015-02-16 10:27:17 +00:00
Karl Hobley
3cdedf12f2 Docs updates 2015-02-16 10:27:17 +00:00
Karl Hobley
5d6aa0c6ca Started restructuring getting started docs 2015-02-16 10:27:17 +00:00
Karl Hobley
9072274a01 Improved front page 2015-02-16 10:26:34 +00:00
Matt Westcott
64d5ffe2b2 Always deconstruct StreamBlock and StructBlock as basic non-subclassed instances 2015-02-13 22:25:46 +00:00
Matt Westcott
17acb8867d Normalise the output of StreamField.deconstruct to a list of block defs.
This ensures that the migration code is the same even if the StreamBlock is defined as an external instance or class, and that in those cases the block definitions get frozen into the migration.
2015-02-13 21:37:37 +00:00
Matt Westcott
0ee9649415 fix some tests that were presumably meant to use StreamBlock but didn't 2015-02-13 20:42:06 +00:00
Matt Westcott
a6c207a1f6 Fix another place where we make a set() of block instances
(and add the unit tests that would have caught it)
2015-02-13 20:33:03 +00:00
Matt Westcott
53ffb18a35 move blocks module to wagtailcore 2015-02-13 19:59:11 +00:00
Matt Westcott
f5bed5ded7 Avoid placing Block instances into a set(), as this requires them to be hashable.
Defining Block.__eq__ in 047ff734ca causes the default __hash__ implementation to be nullified on Python 3. Since it's non-trivial to define a replacement __hash__ method that's consistent with our __eq__ behaviour (it depends on the equality of lists / dicts, which are themselves unhashable), it's more correct to explicitly define Block as unhashable, bringing the Python 2 behaviour in line with Python 3.

The one place where we currently depend on Block being hashable is in constructing the 'dependencies' set for nested blocks. Since we don't actually need the de-duplicating behaviour of set(), we can replace this with a plain list with no ill effects.
2015-02-13 18:33:32 +00:00
Matt Westcott
42940e6e4b implement RawHTMLBlock 2015-02-13 17:17:05 +00:00
Matt Westcott
047ff734ca Implement equality operator on blocks
This prevents the migration autodetector from creating bogus AlterField operations when it encounters block objects that are different instances but functionally equivalent.
2015-02-13 16:49:04 +00:00
Matt Westcott
38b2977e9f Cast 'order' field to int so that it works with >10 items 2015-02-13 13:50:35 +00:00
Matt Westcott
47f2cb57dd Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield 2015-02-13 13:33:22 +00:00
Matt Westcott
8b81a1675f Allow StreamField to be passed a block instance or class instead of a list 2015-02-13 13:33:07 +00:00
Dave Cranwell
cca2663a80 tweak to which class causes full-width alignment 2015-02-13 12:29:26 +00:00
Matt Westcott
d5f3d2d12b implement required=False on ChooserBlocks 2015-02-13 12:01:47 +00:00
Matt Westcott
d641dcb737 Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield 2015-02-13 10:45:29 +00:00
Matt Westcott
733378483f fix classname output on FieldBlock 2015-02-13 10:45:17 +00:00
Dave Cranwell
8d6b9c2ed2 Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield 2015-02-13 10:38:54 +00:00
Dave Cranwell
52bda6bedf new icons added to icon set 2015-02-13 10:38:40 +00:00
Matt Westcott
0d2200222d silently skip unrecognised block types in StreamBlock values 2015-02-13 10:27:18 +00:00
Matt Westcott
89a54efa66 Fix tests to not pass a field arg to FieldBlock 2015-02-12 20:47:40 +00:00
Matt Westcott
e1d39aa19f remove obsolete TextInputBlock 2015-02-12 17:35:32 +00:00
Matt Westcott
6912d5398c support required, help_text, max_length, min_length params on CharBlock 2015-02-12 17:32:33 +00:00
Matt Westcott
1bfac754c4 Drop 'field' param from FieldBlock - always use subclassing instead 2015-02-12 17:23:16 +00:00
John Franey
d9b78580a8 Update form_builder.rst
Update import statement to include all classes used in the example
2015-02-12 12:22:44 -05:00
Matt Westcott
386a1a138c fix test_render_form_labels 2015-02-12 16:40:58 +00:00
Matt Westcott
8fd3d78e57 Capitalize name nicely when using it as a fallback label.
This stops Multiple_words_with_underscores from creeping into the output, and eliminates the need for CSS text-transforms that Capitalize Every Word Like This.
2015-02-12 16:20:47 +00:00
Matt Westcott
9271e8f2a4 Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield
Conflicts:
	wagtail/wagtailadmin/templates/wagtailadmin/block_forms/field.html
2015-02-12 15:52:39 +00:00
Matt Westcott
23ef2e810b implement render_with_errors on BlockWidget 2015-02-12 15:51:20 +00:00
Dave Cranwell
dfa18ba131 addressing hallo toolbar appearing in wrong place 2015-02-12 15:39:06 +00:00
Dave Cranwell
a8f4c3296d labels for streamfield fields don't seem to get capitalized like normal django field labels 2015-02-12 15:24:43 +00:00
Matt Westcott
cdcd0fa8c6 refactor render_form to take an ErrorList rather than a single 'error' param 2015-02-12 15:24:11 +00:00
Dave Cranwell
383bf1e384 tweaks to how specific types of field are rendered 2015-02-12 15:19:00 +00:00
Dan Braghis
8fe8c5bc13 Add changelog/release notes for #978 2015-02-12 14:46:31 +00:00
Dan Braghis
c50f6ed53b Merge pull request #978 from kaedroho/vagrant-port-8000
Change project template Vagrantfile to listen on port 8000
2015-02-12 14:42:33 +00:00
Matt Westcott
31966eab4f Add template filters to support widgets that implement render_with_errors 2015-02-12 14:07:02 +00:00
Karl Hobley
d239de72d5 Send instance in correct kwarg in document_served
Was previously using "sender" which should be set to the document class
2015-02-12 13:58:30 +00:00
Karl Hobley
6fef8f441d Changelog and release notes for #990 2015-02-12 13:53:40 +00:00
Karl Hobley
02cbd32a45 Merge pull request #991 from kaedroho/docs-serve-view-tests
Docs serve view tests
2015-02-12 13:50:16 +00:00
Karl Hobley
76ef1eb41a Fixed spelling mistake 2015-02-12 12:45:38 +00:00
Karl Hobley
29caba921e Added tests for docs serve view 2015-02-12 12:32:22 +00:00
Matt Westcott
b912655298 Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield 2015-02-12 12:31:49 +00:00
Dan Braghis
918f286eea Use StreamingHttpResponse to server documents 2015-02-12 11:39:31 +00:00
Dan Braghis
f36836bc48 Change FileWrapper import location 2015-02-12 11:39:17 +00:00