author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
575,403
18.05.2017 11:05:31
-3,600
c47d67d30c802cae9c4d799c02c6472112063551
Consolidate differences in validation error text where possible Remove full stops from all validation errors and simplify where possible Change order of checks in AbstractMenuItem.clean to be more logical Fix existing tests
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menuitems.py", "new_path": "wagtailmenus/models/menuitems.py", "diff": "@@ -100,12 +100,11 @@ class AbstractMenuItem(models.Model, MenuItem):\nif not self.link_url and not self.link_page:\nraise ValidationError({\n'link_url': [\n- _(\"This ...
Python
MIT License
rkhleics/wagtailmenus
- Consolidate differences in validation error text where possible - Remove full stops from all validation errors and simplify where possible - Change order of checks in AbstractMenuItem.clean to be more logical - Fix existing tests
575,403
19.05.2017 09:41:59
-3,600
25efcc2fc282b422554785c7069de7d0ee0a81d9
Go back to field-specific validation errors for consistent visibility in wagtail admin
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/pages.py", "new_path": "wagtailmenus/models/pages.py", "diff": "@@ -165,13 +165,15 @@ class AbstractLinkPage(Page):\n'link_page': _(\"A link page cannot link to another link page\"),\n})\nif not self.link_url and not self.link_page:\n- rais...
Python
MIT License
rkhleics/wagtailmenus
Go back to field-specific validation errors for consistent visibility in wagtail admin
575,403
19.05.2017 09:43:39
-3,600
e64dba840094b1df9860b30877e00000bf854515
Add a couple of simple tests to show the add/edit wagtail views load okay (more to come)
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/tests/test_backend.py", "new_path": "wagtailmenus/tests/test_backend.py", "diff": "@@ -3,11 +3,15 @@ from __future__ import absolute_import, unicode_literals\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import G...
Python
MIT License
rkhleics/wagtailmenus
Add a couple of simple tests to show the add/edit wagtail views load okay (more to come)
575,403
19.05.2017 11:09:06
-3,600
4ac0e366bf94cf6d0fdb3cb8b3af0227fb840ff6
Output full url in preview/view draft Add preview/view draft tests
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/pages.py", "new_path": "wagtailmenus/models/pages.py", "diff": "@@ -227,7 +227,7 @@ class AbstractLinkPage(Page):\n# Display appropriate message if previewing\nif getattr(request, 'is_preview', False):\nreturn HttpResponse(_(\"This page red...
Python
MIT License
rkhleics/wagtailmenus
- Output full url in preview/view draft - Add preview/view draft tests
575,403
29.05.2017 22:05:22
-3,600
27b44406fd5eda4d24f6cfd31167ecf921a95875
Better code consistency/readibility in raising ValidationError
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menuitems.py", "new_path": "wagtailmenus/models/menuitems.py", "diff": "@@ -98,23 +98,14 @@ class AbstractMenuItem(models.Model, MenuItem):\ndef clean(self, *args, **kwargs):\nif not self.link_url and not self.link_page:\n- raise Validation...
Python
MIT License
rkhleics/wagtailmenus
Better code consistency/readibility in raising ValidationError
575,403
30.05.2017 11:12:28
-3,600
9d21bc23b7ed971a600b5f49d11d39f6123f54d3
For completeness, add a test for a link page that links to a non-routable page
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/tests/fixtures/test.json", "new_path": "wagtailmenus/tests/fixtures/test.json", "diff": "\"fields\": {\n\"path\": \"0001\",\n\"depth\": 1,\n- \"numchild\": 1,\n+ \"numchild\": 2,\n\"title\": \"Root\",\n\"slug\": \"root\",\n\"content_type\": [\"wag...
Python
MIT License
rkhleics/wagtailmenus
For completeness, add a test for a link page that links to a non-routable page
575,403
01.06.2017 09:42:05
-3,600
a5d9cdb741abb8385801a3638c8c20530a2ad16c
Use the `extra_classes` field in a test to show it working
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/tests/test_models.py", "new_path": "wagtailmenus/tests/test_models.py", "diff": "@@ -168,7 +168,8 @@ class TestLinkPage(TestCase):\nlinkpage_to_url = LinkPage(\ntitle='Do a google search',\nlink_url=\"https://www.google.co.uk\",\n- url_append='?so...
Python
MIT License
rkhleics/wagtailmenus
Use the `extra_classes` field in a test to show it working
575,403
05.06.2017 16:28:22
-3,600
f6a9d44956902a9677349aaae0277b1915f88654
Utils. get_attrs_from_context no longer needs to accept a guess_tree_position kwarg, as that now happens in the context processor
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/templatetags/menu_tags.py", "new_path": "wagtailmenus/templatetags/menu_tags.py", "diff": "@@ -29,7 +29,7 @@ def main_menu(\n# Variabalise relevant attributes from context\nrequest, site, current_page, root, ancestor_ids = get_attrs_from_context(\...
Python
MIT License
rkhleics/wagtailmenus
Utils. get_attrs_from_context no longer needs to accept a guess_tree_position kwarg, as that now happens in the context processor
575,403
19.06.2017 22:18:45
-3,600
fe40a87335b3e1613a2e5fe556324c547f8f93ca
Remove specific release date from changelog
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -4,7 +4,7 @@ Changelog\n2.X.X (XX.XX.XXX) IN DEVELOPMENT\n--------------------------------\n-2.3.0 (20.06.2017)\n+2.3.0 (XX.06.2017)\n--------------------------------\n* Added wagtail 1.10 and django 1.11 ...
Python
MIT License
rkhleics/wagtailmenus
Remove specific release date from changelog
575,403
20.06.2017 09:49:24
-3,600
08ae65d3235118c57e2d1016b65a4a8404617eed
Add some wagtailmenus-specific deprecation warnings to wagtailmenus.utils.deprecation to be used within the project
[ { "change_type": "ADD", "old_path": null, "new_path": "wagtailmenus/utils/deprecation.py", "diff": "+from __future__ import absolute_import, unicode_literals\n+\n+\n+class RemovedInWagtailMenus24Warning(DeprecationWarning):\n+ pass\n+\n+\n+removed_in_next_version_warning = RemovedInWagtailMenus24War...
Python
MIT License
rkhleics/wagtailmenus
Add some wagtailmenus-specific deprecation warnings to wagtailmenus.utils.deprecation to be used within the project
575,403
20.06.2017 09:52:06
-3,600
61cb086fe4f43c928a32557d51accecf91b58209
Add wagtailmenus.utils.inspection with the accepts_kwarg() method to help with the current method argument deprecation situation
[ { "change_type": "ADD", "old_path": null, "new_path": "wagtailmenus/utils/inspection.py", "diff": "+import inspect\n+import sys\n+\n+\"\"\"\n+This method below was copied from wagtail.wagtailcore.utils (v1.11) and allows\n+us to handle deprecation of method arguments in a way that doesn't swallow\n+...
Python
MIT License
rkhleics/wagtailmenus
Add wagtailmenus.utils.inspection with the accepts_kwarg() method to help with the current method argument deprecation situation
575,403
20.06.2017 10:57:08
-3,600
cf9d9fdab108f9388157199963f6115abd540c2a
Get CHANGELOG full up to date and bump version ready for pypi release (which will be released after release notes have been put together)
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -7,12 +7,14 @@ Changelog\n2.3.0 (XX.06.2017)\n--------------------------------\n-* Added wagtail 1.10 and django 1.11 test environments to tox.\n-* Abstracted out most model functionality from `MenuPage` t...
Python
MIT License
rkhleics/wagtailmenus
Get CHANGELOG full up to date and bump version ready for pypi release (which will be released after release notes have been put together)
575,403
20.06.2017 11:59:29
-3,600
27c458e4e0455bc2720c750cbe132d64f2f9195d
Update 2.3.0 release date and fix typo in CHANGELOG
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -4,7 +4,7 @@ Changelog\n2.X.X (XX.XX.XXX) IN DEVELOPMENT\n--------------------------------\n-2.3.0 (XX.06.2017)\n+2.3.0 (21.06.2017)\n--------------------------------\n* Added an 'AbstractLinkPage' model t...
Python
MIT License
rkhleics/wagtailmenus
Update 2.3.0 release date and fix typo in CHANGELOG
575,405
22.06.2017 10:37:02
-10,800
b727f2a8a9e3d0014ce801a21c63658e2a8cd12f
fix: missed *.mo files for lt and ru locales fix: missed ugettext_lazy call
[ { "change_type": "ADD", "old_path": "wagtailmenus/locale/lt/LC_MESSAGES/django.mo", "new_path": "wagtailmenus/locale/lt/LC_MESSAGES/django.mo", "diff": "Binary files /dev/null and b/wagtailmenus/locale/lt/LC_MESSAGES/django.mo differ\n" }, { "change_type": "ADD", "old_path": "wagtailmenu...
Python
MIT License
rkhleics/wagtailmenus
- fix: missed *.mo files for lt and ru locales - fix: missed ugettext_lazy call
575,403
29.06.2017 18:14:39
-3,600
928311d8ded92c94a13b491c8ab37ccd23a0635a
Update README.md Fix code example formatting
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -499,7 +499,8 @@ class ContactPage(MenuPage):\n):\n# Apply default modifications first of all\nmenu_items = super(ContactPage, self).modify_submenu_items(\n- menu_items, current_page, current_ancestor_ids, curre...
Python
MIT License
rkhleics/wagtailmenus
Update README.md Fix code example formatting
575,403
30.06.2017 08:30:55
-3,600
d790450084e2053a0689c483362d97b72a0ba130
Update development version to 2.3.1a0
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/__init__.py", "new_path": "wagtailmenus/__init__.py", "diff": "@@ -3,7 +3,7 @@ from wagtailmenus.utils.version import get_version, get_stable_branch_name\n# major.minor.patch.release.number\n# release must be one of alpha, beta, rc, or final\n-VER...
Python
MIT License
rkhleics/wagtailmenus
Update development version to 2.3.1a0
575,403
30.06.2017 12:07:02
-3,600
8b60911d46744db0b10f9c08c72ec4a844e0826e
Update README.md Added section to explain about 'Respecting the page tree'
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -10,11 +10,9 @@ The current version is compatible with Wagtail 1.5 to 1.10 and Python 2.7, 3.3,\n# What does it do?\n-## 1. Gives you independent control over your root-level main menu items\n+## 1. Gives you in...
Python
MIT License
rkhleics/wagtailmenus
Update README.md Added section to explain about 'Respecting the page tree'
575,403
30.06.2017 17:04:49
-3,600
0aca4ec132855b30c929b7b3b7878637729a0414
Update README.md Slight rewording of information about pages and children not being included in menus
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -31,7 +31,7 @@ Extend the `wagtailmenus.models.MenuPage` model instead of the usual `wagtail.wa\nUnlike other solutions you may have seen/used before, `wagtailmenus` takes the view that your project's page tree ...
Python
MIT License
rkhleics/wagtailmenus
Update README.md Slight rewording of information about pages and children not being included in menus
575,403
30.06.2017 17:17:22
-3,600
3db22bbdf3577f09058022faddc3a7de0fe9cc36
Update README.md Use headings for each setting in settings reference
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -922,32 +922,161 @@ WAGTAILMENUS_CHILDREN_MENU_CLASS_PATH = \"mysite.appname.models.CustomChildrenMen\nYou can override some of wagtailmenus' default behaviour by adding one of more of the following to your proj...
Python
MIT License
rkhleics/wagtailmenus
Update README.md Use headings for each setting in settings reference
575,403
30.06.2017 14:34:24
-3,600
d38d7c293ccade7d159572cc6f9b1757627bb236
Quieten django deprecation warnings relating to wagtailmenus itself by adding `on_delete=models.CASCADE` all ForeignKey, OneToOneField, and ParentalKey field definitions, and doctor migrations to match
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -636,7 +636,8 @@ If you only wish to change the menu item models (e.g. to add images, extra field\nmenu = ParentalKey(\n'wagtailmenus.MainMenu',\n- related_name=\"custom_menu_items\" # important for step 3!\n+ o...
Python
MIT License
rkhleics/wagtailmenus
Quieten django deprecation warnings relating to wagtailmenus itself by adding `on_delete=models.CASCADE` all ForeignKey, OneToOneField, and ParentalKey field definitions, and doctor migrations to match
575,403
30.06.2017 22:03:26
-3,600
afa64d3df614b2c0a664f0737a2d80ee6f2ecb4a
Update README.md Minor typo fixes
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -193,7 +193,7 @@ By default, the list of locations will be as follows:\n#### When `WAGTAILMENUS_SITE_SPECIFIC_TEMPLATE_DIRS` is `True`\n-That list of locations will be as follows (where `example.com` is the `hos...
Python
MIT License
rkhleics/wagtailmenus
Update README.md Minor typo fixes
575,403
30.06.2017 22:07:08
-3,600
ca3f6af39adbebcab7772e377cc03296f6602e68
Update README.md Fix formatting of HTML output example
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -559,6 +559,7 @@ class ContactPage(MenuPage):\nThese change would result in the following HTML output when rendering a `ContactPage` instance in a main menu:\n```html\n+...\n<li class=\" dropdown\">\n<a href=\"/...
Python
MIT License
rkhleics/wagtailmenus
Update README.md Fix formatting of HTML output example
575,403
01.07.2017 14:27:27
-3,600
fe04beb09e138b09fbd006039088b178ece70788
Update README.md Remove notes about respecting the page tree. It's not necessarily helpful.
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -26,16 +26,9 @@ Extend the `wagtailmenus.models.MenuPage` model instead of the usual `wagtail.wa\n<img alt=\"Screenshot showing the repeated nav item in effect\" src=\"https://raw.githubusercontent.com/rkhleics/...
Python
MIT License
rkhleics/wagtailmenus
Update README.md Remove notes about respecting the page tree. It's not necessarily helpful.
575,403
01.07.2017 15:56:29
-3,600
185db4356ea4a81c36eebc96a12ebc81fb5364f0
Bump version Updated CHANGLOG.md Update Russian, Lithuanian and Portuguese (Brazil) translations
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -4,6 +4,17 @@ Changelog\n2.X.X (XX.XX.XXX) IN DEVELOPMENT\n--------------------------------\n+\n+2.3.1 (01.07.2017)\n+--------------------------------\n+\n+* Code example formatting fixes, and better use o...
Python
MIT License
rkhleics/wagtailmenus
- Bump version - Updated CHANGLOG.md - Update Russian, Lithuanian and Portuguese (Brazil) translations
575,403
01.07.2017 16:09:59
-3,600
a8d9cca63bee122d174d2113e56a787df9f9cef9
Recompiled .mo files for German, French and Italian languages
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/locale/de/LC_MESSAGES/django.mo", "new_path": "wagtailmenus/locale/de/LC_MESSAGES/django.mo", "diff": "Binary files a/wagtailmenus/locale/de/LC_MESSAGES/django.mo and b/wagtailmenus/locale/de/LC_MESSAGES/django.mo differ\n" }, { "change_ty...
Python
MIT License
rkhleics/wagtailmenus
Recompiled .mo files for German, French and Italian languages
575,403
10.07.2017 08:19:44
-3,600
54771f9bb2b3f46e328c40215be17c3049e5eb61
Test against wagtail v1.11
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -19,6 +19,8 @@ matrix:\npython: 3.6\n- env: TOXENV=py36-dj111-wt110\npython: 3.6\n+ - env: TOXENV=py36-dj111-wt111\n+ python: 3.6\ninstall:\n- pip install tox coveralls\nscript:\n" }, { "change_type"...
Python
MIT License
rkhleics/wagtailmenus
Test against wagtail v1.11
575,403
10.07.2017 08:56:03
-3,600
a1b692e2f4927766721221e2e76c498f48330ffb
Update development requirement Update support statement in README
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "It's an extension for Torchbox's [Wagtail CMS](https://github.com/torchbox/wagtail) to help you manage and render multi-level navigation and simple flat menus in a consistent, flexible way.\n-The current version is...
Python
MIT License
rkhleics/wagtailmenus
- Update development requirement - Update support statement in README
575,403
13.07.2017 17:34:30
-3,600
d08c408e782e691d0cf098cd75c9fa585d64d1f6
Add notes RE the variables `sub_menu_template` and `original_menu_tag` to Writing your own menu templates section of README
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -427,9 +427,11 @@ The `{% sub_menu %}` tag is used within menu templates to render additional leve\nThe following variables are added to the context by all of the above tags, which you can make use of in your te...
Python
MIT License
rkhleics/wagtailmenus
Add notes RE the variables `sub_menu_template` and `original_menu_tag` to Writing your own menu templates section of README
575,403
14.07.2017 08:15:26
-3,600
29699baea5d198fe8329c07af75fe4d5a89a2bc0
Set master version to 2.4.0a0
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/__init__.py", "new_path": "wagtailmenus/__init__.py", "diff": "@@ -3,7 +3,7 @@ from wagtailmenus.utils.version import get_version, get_stable_branch_name\n# major.minor.patch.release.number\n# release must be one of alpha, beta, rc, or final\n-VER...
Python
MIT License
rkhleics/wagtailmenus
Set master version to 2.4.0a0
575,403
14.07.2017 09:06:34
-3,600
d34e44cbf17d1a559f968d58d1781b1c233fe01a
Added 'use_absolute_page_urls' note to CHANGELOG.md Added Trent Holliday to CONTRIBUTORS.md
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "Changelog\n=========\n-2.X.X (XX.XX.XXX) IN DEVELOPMENT\n+2.4.0 (XX.XX.XXX) IN DEVELOPMENT\n--------------------------------\n+* Added the 'use_absolute_page_urls' argument to all template tags. When a\n+ val...
Python
MIT License
rkhleics/wagtailmenus
- Added 'use_absolute_page_urls' note to CHANGELOG.md - Added Trent Holliday to CONTRIBUTORS.md
575,403
14.07.2017 11:14:13
-3,600
c42a4a7084c351f60dd66db9c905b1956cb54a15
Pulled complete translations from Transifex
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/locale/de/LC_MESSAGES/django.mo", "new_path": "wagtailmenus/locale/de/LC_MESSAGES/django.mo", "diff": "Binary files a/wagtailmenus/locale/de/LC_MESSAGES/django.mo and b/wagtailmenus/locale/de/LC_MESSAGES/django.mo differ\n" }, { "change_ty...
Python
MIT License
rkhleics/wagtailmenus
Pulled complete translations from Transifex
575,403
14.07.2017 11:47:56
-3,600
6d0e3ab2e33bbfdf6a0dcfe6c9d7e1b1aabbbb28
Added PACKAGING.md Includes some human-readable instructions for managing pushing and pulling of translations. Will be extended in future with outline process for deploying to pypi.
[ { "change_type": "ADD", "old_path": null, "new_path": "PACKAGING.md", "diff": "+## Updating translations (via Transifex)\n+\n+\n+### Pushing updated source files to Transifex\n+\n+This should really be done from the master branch whenever code changes are\n+made/merged, as we want the source files t...
Python
MIT License
rkhleics/wagtailmenus
Added PACKAGING.md Includes some human-readable instructions for managing pushing and pulling of translations. Will be extended in future with outline process for deploying to pypi.
575,403
14.07.2017 15:27:21
-3,600
88822c82150604091d96e5c4dd3ffde29cd4f94d
Optimisations to .travis.yml
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "language: python\ncache: pip\n-sudo: false\n+dist: trusty\n+sudo: required\n+\nmatrix:\ninclude:\n- env: TOXENV=py27-dj18-wt15\n@@ -21,8 +23,12 @@ matrix:\npython: 3.6\n- env: TOXENV=py36-dj111-wt111\npython: 3...
Python
MIT License
rkhleics/wagtailmenus
Optimisations to .travis.yml
575,403
14.07.2017 15:35:25
-3,600
4a8f585f112a682dea4c466dda42c911d8e4650f
self.assertEquals > self.assertEqual use sudo:false for even faster travis builds
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "language: python\ncache: pip\ndist: trusty\n-sudo: required\n+sudo: false\nmatrix:\ninclude:\n" }, { "change_type": "MODIFY", "old_path": "wagtailmenus/tests/test_custom_models.py", "new_path": ...
Python
MIT License
rkhleics/wagtailmenus
- self.assertEquals > self.assertEqual - use sudo:false for even faster travis builds
575,403
20.07.2017 16:51:46
-3,600
f9ec62d36f8d4280ad932c4b11d66fe74f38b7a2
In MenuPageMixin.get_repeated_menu_item(), always set 'has_children_in_menu' to True (Fixes Add some comments to the same method to help explain what is going on Abstract out the logic to identify text to use for a repeated menu item to a new 'get_text_for_repeated_item' method, making it easier to override
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/pages.py", "new_path": "wagtailmenus/models/pages.py", "diff": "@@ -111,6 +111,18 @@ class MenuPageMixin(models.Model):\n\"\"\"\nreturn menu_instance.page_has_children(self)\n+ def get_text_for_repeated_item(\n+ self, request=None, current_...
Python
MIT License
rkhleics/wagtailmenus
- In MenuPageMixin.get_repeated_menu_item(), always set 'has_children_in_menu' to True (Fixes #152) - Add some comments to the same method to help explain what is going on - Abstract out the logic to identify text to use for a repeated menu item to a new 'get_text_for_repeated_item' method, making it easier to override
575,403
20.07.2017 17:02:41
-3,600
002dac1e1f2c5c241a8af95ea80ad0c61bd01ea5
Minor code tidy (fixing flake 8 formatting warnings)
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/pages.py", "new_path": "wagtailmenus/models/pages.py", "diff": "@@ -12,7 +12,9 @@ from django.utils.translation import ugettext_lazy as _\nfrom wagtail.wagtailcore.models import Page\nfrom wagtailmenus.utils.inspection import accepts_kwarg\...
Python
MIT License
rkhleics/wagtailmenus
Minor code tidy (fixing flake 8 formatting warnings)
575,403
20.07.2017 17:21:19
-3,600
07e0fdd200c00bc7b4bd8bae869683c47c2f703c
get_text_for_repeated_item -> get_text_for_repeated_menu_item (more consistent)
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/pages.py", "new_path": "wagtailmenus/models/pages.py", "diff": "@@ -115,7 +115,7 @@ class MenuPageMixin(models.Model):\n\"\"\"\nreturn menu_instance.page_has_children(self)\n- def get_text_for_repeated_item(\n+ def get_text_for_repeated_men...
Python
MIT License
rkhleics/wagtailmenus
get_text_for_repeated_item -> get_text_for_repeated_menu_item (more consistent)
575,403
21.07.2017 12:13:10
-3,600
3e36a038a08360d650b4a7b806ed57b00f531ecf
Update CHANGELOG.md to include bug fix releases (2.3.2, 2.2.3 and 2.1.4)
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -11,6 +11,15 @@ Changelog\nby default. Developed by Trent Holliday of Morris Technology and Andy Babic.\n+2.3.2 (21.07.2017)\n+--------------------------------\n+\n+* Fixed a bug that resting in {% sub_men...
Python
MIT License
rkhleics/wagtailmenus
Update CHANGELOG.md to include bug fix releases (2.3.2, 2.2.3 and 2.1.4)
575,403
21.07.2017 12:18:33
-3,600
fcea3bb0eed724438eb68743634e9ce59d2695f2
More typo corrections in README.md
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -14,7 +14,7 @@ Changelog\n2.3.2 (21.07.2017)\n--------------------------------\n-* Fixed a bug that resulting in {% sub_menu %} being called recursively (\n+* Fixed a bug that would result in {% sub_menu %...
Python
MIT License
rkhleics/wagtailmenus
More typo corrections in README.md
575,403
21.07.2017 12:20:42
-3,600
1b61af2db7f440dafd3f021fc5040d7913fe9d28
Remove unnecessary line from manifest
[ { "change_type": "MODIFY", "old_path": "MANIFEST.in", "new_path": "MANIFEST.in", "diff": "@@ -6,7 +6,6 @@ recursive-include wagtailmenus *.html\nrecursive-include wagtailmenus *.py\nrecursive-include wagtailmenus/static *.js\nrecursive-include wagtailmenus/static *.css\n-recursive-include wagtailmen...
Python
MIT License
rkhleics/wagtailmenus
Remove unnecessary line from manifest
575,403
24.07.2017 22:06:57
-3,600
4cf1330bab85f3c4ec9be063f31742c3a0a69d56
Update theme to 'default'
[ { "change_type": "MODIFY", "old_path": "docs/source/conf.py", "new_path": "docs/source/conf.py", "diff": "@@ -91,7 +91,7 @@ spelling_word_list_filename = 'spelling_wordlist.txt'\n# The theme to use for HTML and HTML Help pages. See the documentation for\n# a list of builtin themes.\n#\n-html_theme =...
Python
MIT License
rkhleics/wagtailmenus
Update theme to 'default'
575,403
24.07.2017 22:35:18
-3,600
03ed1c51489a407d2bb209e1b8ca84bf60ca3f92
Fix a few formatting issues in menupage docs Use comments for 'indicative file names' in code blocks instead of :caption:
[ { "change_type": "MODIFY", "old_path": "docs/source/advanced_topics/custom_menu_classes.rst", "new_path": "docs/source/advanced_topics/custom_menu_classes.rst", "diff": "@@ -27,7 +27,8 @@ If you're happy with the default ``MainMenu`` model, but wish customise the menu\n``AbstractMainMenuItem``:\n.. ...
Python
MIT License
rkhleics/wagtailmenus
- Fix a few formatting issues in menupage docs - Use comments for 'indicative file names' in code blocks instead of :caption:
575,403
24.07.2017 22:45:02
-3,600
3240f7f19361f70b5f75d9f35076e4831e672271
Remove unnecessary intro in template tag reference docs
[ { "change_type": "MODIFY", "old_path": "docs/source/rendering_menus/template_tag_reference.rst", "new_path": "docs/source/rendering_menus/template_tag_reference.rst", "diff": "Template tags reference\n=======================\n-To use any of the menu tags in your templates, you need to first load the...
Python
MIT License
rkhleics/wagtailmenus
Remove unnecessary intro in template tag reference docs
575,403
24.07.2017 22:59:57
-3,600
ec8ca93b79eadba546e64768f7e232ae535b6630
Add more code block to packaging steps
[ { "change_type": "MODIFY", "old_path": "docs/source/contributing/packaging_releases.rst", "new_path": "docs/source/contributing/packaging_releases.rst", "diff": "@@ -7,13 +7,24 @@ Preparing for a new release\nFollow the steps outlined below to prep changes in your fork:\n-1. Ensure that any changes ...
Python
MIT License
rkhleics/wagtailmenus
Add more code block to packaging steps
575,403
24.07.2017 23:23:13
-3,600
3eae63a3887a0af369db49d8f2076105eed02f92
Fix a few typos and rejig the formatting in CMS-related docs
[ { "change_type": "MODIFY", "old_path": "docs/source/contributing/packaging_releases.rst", "new_path": "docs/source/contributing/packaging_releases.rst", "diff": "@@ -7,8 +7,8 @@ Preparing for a new release\nFollow the steps outlined below to prep changes in your fork:\n-1. Merge any changes from ``u...
Python
MIT License
rkhleics/wagtailmenus
Fix a few typos and rejig the formatting in CMS-related docs
575,403
25.07.2017 08:21:13
-3,600
84636b6b8a5d8e21ac24219088b3edc340609581
update README links to point to 'latest' build of docs
[ { "change_type": "MODIFY", "old_path": "README.rst", "new_path": "README.rst", "diff": "@@ -22,18 +22,18 @@ The current version is compatible with Wagtail 1.5 to 1.11 and Python 2.7, 3.3,\nWhat does it do?\n================\n-To find out more about what wagtailmenus does and why, check out the `Over...
Python
MIT License
rkhleics/wagtailmenus
update README links to point to 'latest' build of docs
575,403
25.07.2017 08:53:32
-3,600
8747e937291d3cd34ec1711bb934e8848b8eb399
Add in an image to spruce things up
[ { "change_type": "MODIFY", "old_path": "README.rst", "new_path": "README.rst", "diff": "@@ -24,6 +24,8 @@ What does it do?\nTo find out more about what wagtailmenus does and why, check out the `Overview and key concepts <http://wagtailmenus.readthedocs.io/en/latest/overview.html>`_ section of the do...
Python
MIT License
rkhleics/wagtailmenus
Add in an image to spruce things up
575,403
25.07.2017 09:17:15
-3,600
a6b48dffec29f2beb42bb252aea4fcee64d7b160
Update README.rst Move image to above 'What does it do?' heading
[ { "change_type": "MODIFY", "old_path": "README.rst", "new_path": "README.rst", "diff": "@@ -18,14 +18,13 @@ wagtailmenus is an extension for Torchbox's `Wagtail CMS <https://github.com/tor\nThe current version is compatible with Wagtail 1.5 to 1.11 and Python 2.7, 3.3, 3.4, 3.5 and 3.6.\n+.. image::...
Python
MIT License
rkhleics/wagtailmenus
Update README.rst Move image to above 'What does it do?' heading
575,403
25.07.2017 09:48:30
-3,600
707b5c8dfff2ad605cf31856f82cb0feb279ad3a
Tidying in settings reference
[ { "change_type": "MODIFY", "old_path": "docs/source/settings_reference.rst", "new_path": "docs/source/settings_reference.rst", "diff": "@@ -33,7 +33,7 @@ By default, wagtailmenus adds some additional styles to improve the readability\nDefault value: `'list-ol'`\n-Use this to change the icon used to ...
Python
MIT License
rkhleics/wagtailmenus
Tidying in settings reference
575,403
25.07.2017 10:25:55
-3,600
fb97e4fecbd57a363cdc67f42a6c87e53c50dc13
Add a link to the github project from the docs
[ { "change_type": "MODIFY", "old_path": "docs/source/index.rst", "new_path": "docs/source/index.rst", "diff": "@@ -7,7 +7,10 @@ wagtailmenus is an open-source extension for `Wagtail CMS\nThe current version is compatible with Wagtail 1.5 to 1.11 and Python 2.7, 3.3, 3.4, 3.5 and 3.6.\n-To find out mo...
Python
MIT License
rkhleics/wagtailmenus
Add a link to the github project from the docs
575,403
25.07.2017 10:36:26
-3,600
63d0901b9d631d535eacb27ee486b39f1b161135
Add horizontal rules above and below all tag parameter entries to improve visual distinguishability
[ { "change_type": "MODIFY", "old_path": "docs/source/rendering_menus/template_tag_reference.rst", "new_path": "docs/source/rendering_menus/template_tag_reference.rst", "diff": "@@ -31,6 +31,7 @@ Example usage\nSupported arguments\n-------------------\n+-----\n``show_multiple_levels``\n~~~~~~~~~~~~~~~...
Python
MIT License
rkhleics/wagtailmenus
Add horizontal rules above and below all tag parameter entries to improve visual distinguishability
575,403
26.07.2017 08:53:37
-3,600
6692da75ffc4f4300bd121fc4b3319bd155a4e30
Don't use literals for param headings in tag reference (makes them easier to spot) Increase depth of toctree on rendering_menus index Add some dividers to custom templates docs to better separate approaches
[ { "change_type": "MODIFY", "old_path": "docs/source/rendering_menus/custom_templates.rst", "new_path": "docs/source/rendering_menus/custom_templates.rst", "diff": "@@ -9,6 +9,7 @@ Using your own menu templates\n:local:\n:depth: 2\n+-----\nWriting custom menu templates\n=============================\...
Python
MIT License
rkhleics/wagtailmenus
- Don't use literals for param headings in tag reference (makes them easier to spot) - Increase depth of toctree on rendering_menus index - Add some dividers to custom templates docs to better separate approaches
575,403
02.08.2017 12:38:22
-3,600
4a4855b524c0d28f17821e770b1effbadcdb31f3
Refactor the 'menu_text' method on AbstractMenuItem to make things a little clearer, and also account for any instance where link_text or link_page are both unset (even if we prevent that with validation, data can always be changed via other routes)
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menuitems.py", "new_path": "wagtailmenus/models/menuitems.py", "diff": "@@ -82,7 +82,11 @@ class AbstractMenuItem(models.Model, MenuItem):\n@property\ndef menu_text(self):\n- return self.link_text or getattr(\n+ if self.link_text:\n+ return...
Python
MIT License
rkhleics/wagtailmenus
Refactor the 'menu_text' method on AbstractMenuItem to make things a little clearer, and also account for any instance where link_text or link_page are both unset (even if we prevent that with validation, data can always be changed via other routes)
575,403
02.08.2017 13:21:24
-3,600
5527ab9f5e00aecf6cc41760415e15a4503c4d60
Meta classes defined in AbstractMainMenuItem and AbstractFlatMenuItem shouldn't repeat values - they should subclass AbastractMenuItem.Meta where common behaviour is configured
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menuitems.py", "new_path": "wagtailmenus/models/menuitems.py", "diff": "@@ -79,6 +79,7 @@ class AbstractMenuItem(models.Model, MenuItem):\nabstract = True\nverbose_name = _(\"menu item\")\nverbose_name_plural = _(\"menu items\")\n+ ordering...
Python
MIT License
rkhleics/wagtailmenus
Meta classes defined in AbstractMainMenuItem and AbstractFlatMenuItem shouldn't repeat values - they should subclass AbastractMenuItem.Meta where common behaviour is configured
575,403
04.08.2017 23:33:25
-3,600
196b92c29488e98b9b71e6b036369ad807ea1e24
Update translations and reconvert to .mo
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/locale/fr/LC_MESSAGES/django.mo", "new_path": "wagtailmenus/locale/fr/LC_MESSAGES/django.mo", "diff": "Binary files a/wagtailmenus/locale/fr/LC_MESSAGES/django.mo and b/wagtailmenus/locale/fr/LC_MESSAGES/django.mo differ\n" }, { "change_ty...
Python
MIT License
rkhleics/wagtailmenus
Update translations and reconvert to .mo
575,403
21.08.2017 23:08:54
-3,600
643b1512f3746b1d50f7158a17927caa9c190b49
Bump version to 2.5.0a and add blank release notes
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/source/releases/2.5.0a.rst", "diff": "+=================================\n+Wagtailmenus 2.5.0a release notes\n+=================================\n+\n+.. NOTE::\n+ This version is still under development\n+\n+.. contents::\n+ :local:\n+ :dep...
Python
MIT License
rkhleics/wagtailmenus
Bump version to 2.5.0a and add blank release notes
575,403
21.08.2017 23:14:41
-3,600
674a7ba935bb21c5640120f09ef69284884d7803
Cycle deprecation warnings and remove unsupported behaviour
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/pages.py", "new_path": "wagtailmenus/models/pages.py", "diff": "@@ -12,9 +12,7 @@ from django.utils.translation import ugettext_lazy as _\nfrom wagtail.wagtailcore.models import Page\nfrom wagtailmenus.utils.inspection import accepts_kwarg\...
Python
MIT License
rkhleics/wagtailmenus
Cycle deprecation warnings and remove unsupported behaviour
575,403
21.08.2017 23:15:18
-3,600
0e67f72ddfcc388e1030695b867d4cc2579c14e7
Add Tom Dyson to contributors
[ { "change_type": "MODIFY", "old_path": "CONTRIBUTORS.md", "new_path": "CONTRIBUTORS.md", "diff": "* Adrian Tijsseling (adriaant)\n* Tim Leguijt (tleguijt)\n* Trent Holiday (trumpet2012)\n+* Tom Dyson (tomdyson)\n## Translators\n" }, { "change_type": "MODIFY", "old_path": "docs/source/ove...
Python
MIT License
rkhleics/wagtailmenus
Add Tom Dyson to contributors
575,403
22.08.2017 09:55:04
-3,600
84eebea6444202053eb931603f7c146d3ebfcbc5
Deprecate MenuItemManager
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/managers.py", "new_path": "wagtailmenus/managers.py", "diff": "from __future__ import absolute_import, unicode_literals\n+import warnings\nfrom django.db import models\n+from wagtailmenus.utils.deprecation import RemovedInWagtailMenus27Warning\n+\...
Python
MIT License
rkhleics/wagtailmenus
Deprecate MenuItemManager
575,403
23.08.2017 13:25:45
-3,600
31ab0cceb73c16339e0143fad2169fc11d2fd081
Fix test_models.TestNoAbsoluteUrlsPage.test_raises_deprecation_warning() test
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/tests/models/pages.py", "new_path": "wagtailmenus/tests/models/pages.py", "diff": "@@ -170,20 +170,20 @@ class NoAbsoluteUrlsPage(MenuPage):\ndef modify_submenu_items(\nself, menu_items, current_page, current_ancestor_ids,\ncurrent_site, allow_rep...
Python
MIT License
rkhleics/wagtailmenus
Fix test_models.TestNoAbsoluteUrlsPage.test_raises_deprecation_warning() test
575,403
23.08.2017 13:51:49
-3,600
ac18bdee2fa99a5de0bef3699c7b027436adc311
Fix menu output tests
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -170,7 +170,7 @@ class MenuWithMenuItems(ClusterableModel, Menu):\n# excluded at the top level\ntop_level_pages = self.get_base_page_queryset().filter(\nid__in=menu_items.va...
Python
MIT License
rkhleics/wagtailmenus
Fix menu output tests
575,403
23.08.2017 16:24:42
-3,600
accc9f77113a5c4c31c7c77377b42e5e7739eca4
tweak travis config and introduce deliberately failing test
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "language: python\ncache: pip\ndist: trusty\n-sudo: required\n+sudo: false\nmatrix:\ninclude:\n@@ -25,10 +25,10 @@ matrix:\npython: 3.6\ninstall:\n-- pip install tox codecov\n+ pip install tox codecov\nscript:\n...
Python
MIT License
rkhleics/wagtailmenus
tweak travis config and introduce deliberately failing test
575,403
23.08.2017 16:31:52
-3,600
cbfe001d7bd16c21bbdc69a31e54b9affaf685ef
Undo changes to .travis.yml
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "language: python\ncache: pip\ndist: trusty\n-sudo: false\n+sudo: required\nmatrix:\ninclude:\n@@ -25,10 +25,10 @@ matrix:\npython: 3.6\ninstall:\n- pip install tox codecov\n+- pip install tox codecov\nscript:\n...
Python
MIT License
rkhleics/wagtailmenus
Undo changes to .travis.yml
575,403
24.08.2017 14:25:52
-3,600
92e41978426ee2d92c65beff26b06c284cf944d6
Officially deprecate the 'sub_menu' tag's 'stop_at_this_level' argument and remove from info from docs. It hasn't worked for a while.
[ { "change_type": "MODIFY", "old_path": "docs/source/rendering_menus/template_tag_reference.rst", "new_path": "docs/source/rendering_menus/template_tag_reference.rst", "diff": "@@ -688,19 +688,6 @@ item must be passed to ``{% sub_menu %}`` so that it knows which page to render\n-----\n-stop_at_this_l...
Python
MIT License
rkhleics/wagtailmenus
Officially deprecate the 'sub_menu' tag's 'stop_at_this_level' argument and remove from info from docs. It hasn't worked for a while.
575,403
24.08.2017 17:21:02
-3,600
d5dbf93bf250d2788b02b7bac39b10c20d302379
Updated release notes, CHANGELOG.md and CONTRIBUTORS.md
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "Changelog\n=========\n-2.X.X (XX.XX.XXXX) IN DEVELOPMENT\n----------------------------------\n+2.5.0a (XX.XX.XXXX) IN DEVELOPMENT\n+----------------------------------\n+\n+* Fixed an issue with runtests.py th...
Python
MIT License
rkhleics/wagtailmenus
Updated release notes, CHANGELOG.md and CONTRIBUTORS.md
575,403
24.08.2017 17:24:50
-3,600
4a4debba8587dc80bfe45720f1ae66c5d7d99d18
Fix: Document may not end with a transition
[ { "change_type": "MODIFY", "old_path": "docs/source/rendering_menus/template_tag_reference.rst", "new_path": "docs/source/rendering_menus/template_tag_reference.rst", "diff": "@@ -756,5 +756,3 @@ No ``bool`` ``None`` (inherit from original tag)\nAllows you to override the value set on the original t...
Python
MIT License
rkhleics/wagtailmenus
Fix: Document may not end with a transition
575,403
24.08.2017 17:39:21
-3,600
eb637dfacff81a5f7b0530f244adbaeec4b097d2
Add support for 'menus_modify_base_page_queryset' and 'menus_modify_base_menuitem_queryset' hooks in menu classes
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -8,11 +8,10 @@ from django.utils.encoding import python_2_unicode_compatible\nfrom django.utils.functional import cached_property\nfrom django.utils.safestring import mark_s...
Python
MIT License
rkhleics/wagtailmenus
Add support for 'menus_modify_base_page_queryset' and 'menus_modify_base_menuitem_queryset' hooks in menu classes
575,403
24.08.2017 17:40:12
-3,600
343cba6ee82ed35882655699043ead57bce9733e
Add support for a 'menus_modify_menu_items' hook in menu_tags.prime_menu_items
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/templatetags/menu_tags.py", "new_path": "wagtailmenus/templatetags/menu_tags.py", "diff": "@@ -3,6 +3,7 @@ import warnings\nfrom copy import copy\nfrom django.template import Library\n+from wagtail.wagtailcore import hooks\nfrom wagtail.wagtailcor...
Python
MIT License
rkhleics/wagtailmenus
Add support for a 'menus_modify_menu_items' hook in menu_tags.prime_menu_items
575,403
25.08.2017 10:43:06
-3,600
a0a273bd0311710dbfebbd63abd0a05cc4e1cf0e
Only include the 'root_page' kwarg for the 'menus_modify_base_page_queryset' hook. For 'menus_modify_base_menuitem_queryset' it is irrelevant, because it will always be None Remove support for the 'menus_modify_children_for_page' hook (it doesn't feel very useful given all of the other hooks that are available)
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -42,11 +42,10 @@ class Menu(object):\nexcept AttributeError:\npass\n- def get_default_hook_kwargs(self):\n+ def get_common_hook_kwargs(self):\nreturn {\n'request': self.requ...
Python
MIT License
rkhleics/wagtailmenus
- Only include the 'root_page' kwarg for the 'menus_modify_base_page_queryset' hook. For 'menus_modify_base_menuitem_queryset' it is irrelevant, because it will always be None - Remove support for the 'menus_modify_children_for_page' hook (it doesn't feel very useful given all of the other hooks that are available)
575,403
25.08.2017 10:55:07
-3,600
99243cb6c5901fa0c8368ac99f69a188c02b6f09
Minor docstring / comment tweaks for Menu methods Made the logic in 'pages_for_display' easier to override on custom menu classes by breaking it out into a separate 'get_pages_for_display()' method (that isn't decorated with ``cached_property``) Updated changelog and release notes to mention the above
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -21,13 +21,16 @@ Changelog\n* Removed the `check_for_children` argument, in favour of using\n'current_level' and 'max_levels'.\n* Arguments order also revised\n-* All calls to `prime_menu_items` are made w...
Python
MIT License
rkhleics/wagtailmenus
- Minor docstring / comment tweaks for Menu methods - Made the logic in 'pages_for_display' easier to override on custom menu classes by breaking it out into a separate 'get_pages_for_display()' method (that isn't decorated with ``cached_property``) - Updated changelog and release notes to mention the above
575,403
25.08.2017 15:18:57
-3,600
14bc85f385c7a06455519a1b0df3ec216e5ae7d1
Added documentation and notes to CHANGELOG.md and release notes
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -31,6 +31,10 @@ Changelog\n* Made the logic in 'pages_for_display' easier to override on custom menu\nclasses by breaking it out into a separate 'get_pages_for_display()' method\n(that isn't decorated with...
Python
MIT License
rkhleics/wagtailmenus
Added documentation and notes to CHANGELOG.md and release notes
575,403
25.08.2017 15:43:30
-3,600
e09d968a7a8856885bce79f84e84342431ef3b08
Add wagtail 1.12 test environment for tox / Travis CI
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -23,6 +23,8 @@ matrix:\npython: 3.6\n- env: TOXENV=py36-dj111-wt111\npython: 3.6\n+ - env: TOXENV=py36-dj111-wt112\n+ python: 3.6\ninstall:\n- pip install tox codecov\n" }, { "change_type": "MODIFY",...
Python
MIT License
rkhleics/wagtailmenus
Add wagtail 1.12 test environment for tox / Travis CI
575,403
25.08.2017 15:52:49
-3,600
902d514c7413c6bd4e6ddad0bfe8085bff2e09b0
Announce 1.12 support in docs/readme, and note to changelog/release notes
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -35,6 +35,7 @@ Changelog\nquerysets and manipulation of menu items during rendering. For more\ninformation and examples, see the 'Hooks' section of the documentation:\nhttp://wagtailmenus.readthedocs.io/en...
Python
MIT License
rkhleics/wagtailmenus
Announce 1.12 support in docs/readme, and note to changelog/release notes
575,403
27.08.2017 00:12:43
-3,600
1e9551b0538cf98712888a885d469934477da1c0
Add the 'add_menu_items_for_pages' method to the abstract `MenuWithMenuItems` model
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -257,6 +257,20 @@ class MenuWithMenuItems(ClusterableModel, Menu):\ndef pages_for_display(self):\nreturn self.get_pages_for_display()\n+ def add_menu_items_for_pages(self, p...
Python
MIT License
rkhleics/wagtailmenus
Add the 'add_menu_items_for_pages' method to the abstract `MenuWithMenuItems` model
575,403
27.08.2017 20:57:55
-3,600
96fb8908c6591fa0c4050fed31719d96b8168e5a
Because 'add_menu_items_for_pages' references 'get_menu_items_manager', that method should exist on the same class, but with a NotImplementedError notice
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -97,8 +97,9 @@ class Menu(object):\n@property\ndef pages_for_display(self):\n- raise NotImplementedError(\"Subclasses of `Menu` must define their own \"\n- \"'pages_for_disp...
Python
MIT License
rkhleics/wagtailmenus
Because 'add_menu_items_for_pages' references 'get_menu_items_manager', that method should exist on the same class, but with a NotImplementedError notice
575,403
27.08.2017 21:01:11
-3,600
462d7838aaa0b6c78eeda33ad2196afc777b0947
Add the 'autopopulate_main_menus' command
[ { "change_type": "ADD", "old_path": "wagtailmenus/management/__init__.py", "new_path": "wagtailmenus/management/__init__.py", "diff": "" }, { "change_type": "ADD", "old_path": "wagtailmenus/management/commands/__init__.py", "new_path": "wagtailmenus/management/commands/__init__.py", ...
Python
MIT License
rkhleics/wagtailmenus
Add the 'autopopulate_main_menus' command
575,403
27.08.2017 21:02:08
-3,600
733726467c397ff530a556e9a624466994e7c13c
Add tests for new command
[ { "change_type": "ADD", "old_path": null, "new_path": "wagtailmenus/tests/test_commands.py", "diff": "+from __future__ import absolute_import, unicode_literals\n+\n+from django.test import TestCase\n+from django.core.management import call_command\n+from wagtail.wagtailcore.models import Site\n+\n+f...
Python
MIT License
rkhleics/wagtailmenus
Add tests for new command
575,403
28.08.2017 17:35:40
-3,600
6fe9eb64cb61797c1bfbe00d1b8692b5e8a454fc
Don't add home page links by default
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/management/commands/autopopulate_main_menus.py", "new_path": "wagtailmenus/management/commands/autopopulate_main_menus.py", "diff": "@@ -22,7 +22,7 @@ class Command(BaseCommand):\n'--add-home-links',\naction='store_true',\ndest='add-home-links',\n...
Python
MIT License
rkhleics/wagtailmenus
Don't add home page links by default
575,403
29.08.2017 09:03:40
-3,600
6064f95021119e781b13224febfeca2d7de4aec5
Make the '--add-home-links' option work for any value that evaluates to a bool
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/management/commands/autopopulate_main_menus.py", "new_path": "wagtailmenus/management/commands/autopopulate_main_menus.py", "diff": "@@ -32,6 +32,6 @@ class Command(BaseCommand):\nif not menu.get_menu_items_manager().exists():\nmenu.add_menu_items...
Python
MIT License
rkhleics/wagtailmenus
Make the '--add-home-links' option work for any value that evaluates to a bool
575,403
29.08.2017 09:38:46
-3,600
9e75860f6faaa320249793a4f0de668a6169a693
Confirm the number of items added by the command is as expected in tests, and also that running the command more than once does not have any effect
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/tests/test_commands.py", "new_path": "wagtailmenus/tests/test_commands.py", "diff": "@@ -23,11 +23,16 @@ class TestAutoPopulateMainMenus(TestCase):\nmenu_items = menu.get_menu_items_manager()\n# Confirm that there are menu items\n- self.assertTrue...
Python
MIT License
rkhleics/wagtailmenus
Confirm the number of items added by the command is as expected in tests, and also that running the command more than once does not have any effect
575,403
29.08.2017 09:39:32
-3,600
99d0ebd20d326b971e095028cea2bd2cbc8af837
Evaluate the menu items querysets before comparing
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/tests/test_commands.py", "new_path": "wagtailmenus/tests/test_commands.py", "diff": "@@ -28,10 +28,12 @@ class TestAutoPopulateMainMenus(TestCase):\n# Confirm that the first item is NOT a home page link\nself.assertFalse(menu_items.first().menu_te...
Python
MIT License
rkhleics/wagtailmenus
Evaluate the menu items querysets before comparing
575,403
29.08.2017 10:58:37
-3,600
86168eb373b192f016d3da1e42f39dbc5a358260
Fix link to installation docs
[ { "change_type": "MODIFY", "old_path": "docs/source/releases/2.5.0a.rst", "new_path": "docs/source/releases/2.5.0a.rst", "diff": "@@ -25,7 +25,7 @@ They use the hooks mechanism from Wagtail, so you may already be familiar with t\nNew 'autopopulate_main_menus' command added\n-------------------------...
Python
MIT License
rkhleics/wagtailmenus
Fix link to installation docs
575,403
29.08.2017 11:02:21
-3,600
211dfda76526fbf5d6ad82681ec5fb0f10a72669
Further tweaks to release notes
[ { "change_type": "MODIFY", "old_path": "docs/source/releases/2.5.0a.rst", "new_path": "docs/source/releases/2.5.0a.rst", "diff": "@@ -27,9 +27,11 @@ New 'autopopulate_main_menus' command added\nThe 'autopopulate_main_menus' command has been introduced to help developers integrate wagtailmenus into a...
Python
MIT License
rkhleics/wagtailmenus
Further tweaks to release notes
575,403
29.08.2017 11:29:25
-3,600
4135bafd2ce043fb412d9f5bcf082f904ec43270
Update README.rst Link to 'stable' version of docs from README to reduce potential confusion about changes that might have been implemented in `master`, but aren't yet available in a release version
[ { "change_type": "MODIFY", "old_path": "README.rst", "new_path": "README.rst", "diff": "@@ -23,18 +23,18 @@ The current version is compatible with Wagtail 1.5 to 1.12 and Python 2.7, 3.3,\nWhat does it do?\n================\n-To find out more about what wagtailmenus does and why, check out the `Over...
Python
MIT License
rkhleics/wagtailmenus
Update README.rst Link to 'stable' version of docs from README to reduce potential confusion about changes that might have been implemented in `master`, but aren't yet available in a release version
575,403
29.08.2017 14:37:48
-3,600
39b7421cc3fd3ba84d37de68eb7fa3d59054d8ca
Instead of copying the existing 'context' object to reuse again, using the context.flatten() to create a dict from the original context, updating the dict with new values as necessary, then turn into a new Context object for rendering.
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/templatetags/menu_tags.py", "new_path": "wagtailmenus/templatetags/menu_tags.py", "diff": "from __future__ import unicode_literals\nimport warnings\n-from copy import copy\n-from django.template import Library\n+from django.template import Context...
Python
MIT License
rkhleics/wagtailmenus
Instead of copying the existing 'context' object to reuse again, using the context.flatten() to create a dict from the original context, updating the dict with new values as necessary, then turn into a new Context object for rendering.
575,403
16.09.2017 09:34:41
-3,600
3027dbdb14b453aff3f06ac647840ce9d02b9ebf
Use the new class-based rendering from the menu tags Update hooks test to account for the new/consistent attributes that are sent to them
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/templatetags/menu_tags.py", "new_path": "wagtailmenus/templatetags/menu_tags.py", "diff": "from __future__ import unicode_literals\nimport warnings\n-from django.template import Context, Library\n+from django.template import Library\nfrom wagtail....
Python
MIT License
rkhleics/wagtailmenus
- Use the new class-based rendering from the menu tags - Update hooks test to account for the new/consistent attributes that are sent to them
575,403
16.09.2017 09:35:55
-3,600
d106061b492b9dac13827d47194d7f7c66f1f3cc
Deprecate utility methods previously used by tags
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/utils/misc.py", "new_path": "wagtailmenus/utils/misc.py", "diff": "+import warnings\n+\nfrom wagtail.wagtailcore.models import Page, Site\n-from wagtailmenus.models.menuitems import MenuItem\n+from ..models.menuitems import MenuItem\n+from .deprec...
Python
MIT License
rkhleics/wagtailmenus
Deprecate utility methods previously used by tags
575,403
16.09.2017 13:37:15
-3,600
4c518038d4b1d7c3aca96a9a15a01cae9e41936b
Ditch the now unused 'menu_tag' attributes from menu classes For consistency, use 'flat_menu' as the menu_instance_context_name for AbstractFlatMenu, but add 'matched_menu' to the context for backwards compatibility
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -50,7 +50,6 @@ class Menu(object):\npages_for_display = None\nroot_page = None # Not relevant for all menu classes\nrequest = None\n- menu_type = '' # provided to hook metho...
Python
MIT License
rkhleics/wagtailmenus
- Ditch the now unused 'menu_tag' attributes from menu classes - For consistency, use 'flat_menu' as the menu_instance_context_name for AbstractFlatMenu, but add 'matched_menu' to the context for backwards compatibility
575,403
16.09.2017 14:28:20
-3,600
0c188b1bce4449d18c30c11728ab7180c995d839
Ditch menu_type attribute for SubMenu also
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -778,10 +778,9 @@ class ChildrenMenu(MenuFromRootPage):\nclass SubMenu(MenuFromRootPage):\n- menu_type = 'sub_menu' # provided to hook methods\nmenu_short_name = 'sub' # use...
Python
MIT License
rkhleics/wagtailmenus
Ditch menu_type attribute for SubMenu also
575,403
16.09.2017 14:54:20
-3,600
87c18c4167e04d27dc6e50db4a72879205604791
Remove the now redundant 'get_menu_item_modify_hook_kwargs' method (all hooks implementations now use 'get_common_hook_kwargs')
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -315,25 +315,6 @@ class Menu(object):\nitems = hook(items, **hook_kwargs)\nreturn items\n- def get_menu_item_modify_hook_kwargs(self):\n- cvals = self._contextual_vals\n- op...
Python
MIT License
rkhleics/wagtailmenus
Remove the now redundant 'get_menu_item_modify_hook_kwargs' method (all hooks implementations now use 'get_common_hook_kwargs')
575,403
16.09.2017 14:59:11
-3,600
87079582f38e23b5be41e2f983937f78cf73ddf4
Reserve the 'top_level_items' convention for main and flat menus, where there's a useful distinction between the top level items (saved menu items) and items at other items (pages)
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -315,16 +315,9 @@ class Menu(object):\nitems = hook(items, **hook_kwargs)\nreturn items\n- def get_top_level_items(self):\n- raise NotImplementedError(\"Subclasses of 'Menu'...
Python
MIT License
rkhleics/wagtailmenus
Reserve the 'top_level_items' convention for main and flat menus, where there's a useful distinction between the top level items (saved menu items) and items at other items (pages)
575,403
16.09.2017 15:04:40
-3,600
eb637e831cc8b0a007c5441d0381933468be52c9
Rename the 'get_primed_menu_items' method to 'get_menu_items_for_rendering' and add docstring and comments to explain what the code does
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -301,16 +301,31 @@ class Menu(object):\n'current_ancestor_ids': data['current_page_ancestor_ids'],\n})\nif 'menu_items' not in kwargs:\n- data['menu_items'] = self.get_prime...
Python
MIT License
rkhleics/wagtailmenus
Rename the 'get_primed_menu_items' method to 'get_menu_items_for_rendering' and add docstring and comments to explain what the code does
575,403
16.09.2017 15:09:08
-3,600
f2364fa703e58d9a962f71756567b5ac83607856
Make 'MenuWithMenuItems.top_level_items' into a 'get_top_level_items' method to make that functionality easier to override, and add a new 'top_level_items' method with the decorator that calls the 'get_top_level_items' method.
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -806,6 +806,9 @@ class MenuWithMenuItems(ClusterableModel, MultiLevelMenu):\n@cached_property\ndef top_level_items(self):\n+ return self.get_top_level_items()\n+\n+ def get_...
Python
MIT License
rkhleics/wagtailmenus
Make 'MenuWithMenuItems.top_level_items' into a 'get_top_level_items' method to make that functionality easier to override, and add a new 'top_level_items' method with the @cached_property decorator that calls the 'get_top_level_items' method.
575,403
16.09.2017 15:35:05
-3,600
6224999b27b9ab916c636a19cbd852826cdad65d
Make Menu.prime_menu_items into a generator method, and only evaluate to a list when necessary
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -2,6 +2,7 @@ from __future__ import absolute_import, unicode_literals\nimport warnings\nfrom collections import defaultdict, namedtuple\n+from types import GeneratorType\nfr...
Python
MIT License
rkhleics/wagtailmenus
Make Menu.prime_menu_items into a generator method, and only evaluate to a list when necessary
575,403
16.09.2017 17:57:23
-3,600
b8a4d6f5a1cf0ad9404440943a816ec2c4c4a45c
minor tidying and consistency improvements
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -218,16 +218,16 @@ class Menu(object):\nself.use_specific = use_specific\ndef get_common_hook_kwargs(self, **kwargs):\n- opts = self._option_vals\n+ opt_vals = self._option_...
Python
MIT License
rkhleics/wagtailmenus
minor tidying and consistency improvements
575,403
16.09.2017 20:17:30
-3,600
afdac91c2708381f19b7f71c143d55400b30bea0
Remove conditional for preparing the section root for display, as It wasn't present in the template tag
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -719,7 +719,7 @@ class SectionMenu(MenuFromRootPage):\ndata = super(SectionMenu, self).get_context_data()\ndata['show_section_root'] = opt_vals.extra['show_section_root']\n-...
Python
MIT License
rkhleics/wagtailmenus
Remove conditional for preparing the section root for display, as It wasn't present in the template tag
575,403
17.09.2017 09:04:41
-3,600
65a5828c6e526d64401d0c6a863e77241e502424
ctv_vals = ctx_vals
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -283,11 +283,11 @@ class Menu(object):\nreturn page.path in self.page_children_dict\ndef get_context_data(self, **kwargs):\n- ctv_vals = self._contextual_vals\n+ ctx_vals = ...
Python
MIT License
rkhleics/wagtailmenus
ctv_vals = ctx_vals
575,403
17.09.2017 09:11:41
-3,600
f2a64ce50b79399be3df299ba0790ff4ce7ef3c8
Have the base Menu model's get_context_data() populate 'original_menu_instance' in the context, as it's not necessarily something that is only useful for multi-level menus
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -301,6 +301,8 @@ class Menu(object):\n'section_root': data['current_section_root_page'],\n'current_ancestor_ids': data['current_page_ancestor_ids'],\n})\n+ if not ctx_vals.o...
Python
MIT License
rkhleics/wagtailmenus
Have the base Menu model's get_context_data() populate 'original_menu_instance' in the context, as it's not necessarily something that is only useful for multi-level menus
575,403
17.09.2017 09:30:16
-3,600
601cd1fd6c508985564ca3c7e8b29fb4ca973ff8
Instead of complicating the 'get_instance_for_rendering' process further, just have SectionMenu, ChildrenMenu and SubMenu override 'get_instance_for_rendering' in their own way (much simpler!)
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "@@ -587,19 +587,6 @@ class MenuFromRootPage(MultiLevelMenu):\nroot_page = None\nroot_page_context_name = 'root_page'\n- @classmethod\n- def get_instance_for_rendering(cls, cont...
Python
MIT License
rkhleics/wagtailmenus
Instead of complicating the 'get_instance_for_rendering' process further, just have SectionMenu, ChildrenMenu and SubMenu override 'get_instance_for_rendering' in their own way (much simpler!)
575,403
17.09.2017 09:57:41
-3,600
c2b1b9162f9bc795eaaa887eacad91bef6193d6b
Remove the MultiLevelMenu class - it's doing way too much, and sometimes unnecessarily. Instead, add some mixins for the defining similar behaviour, and use where appropriate
[ { "change_type": "MODIFY", "old_path": "wagtailmenus/models/menus.py", "new_path": "wagtailmenus/models/menus.py", "diff": "from __future__ import absolute_import, unicode_literals\n-import warnings\nfrom collections import defaultdict, namedtuple\nfrom types import GeneratorType\n@@ -19,10 +18,9 @@...
Python
MIT License
rkhleics/wagtailmenus
Remove the MultiLevelMenu class - it's doing way too much, and sometimes unnecessarily. Instead, add some mixins for the defining similar behaviour, and use where appropriate