Skip to content

Commit

Permalink
This might help debug. Might not.
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt committed Apr 26, 2018
1 parent be40e72 commit 053c141
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions menus/menu_pool.py
Expand Up @@ -155,6 +155,8 @@ def _build_nodes(self):
# Only use the cache if the key is present in the database.
# This prevents a condition where keys which have been removed
# from the database due to a change in content, are still used.
print("CACHED_NODES")
print(cached_nodes)
return cached_nodes

final_nodes = []
Expand All @@ -164,6 +166,8 @@ def _build_nodes(self):
menu = self.get_menu(menu_class_name)

try:
print("GETNODES")
print(nodes)
nodes = menu.get_nodes(self.request)
except NoReverseMatch:
# Apps might raise NoReverseMatch if an apphook does not yet
Expand Down
1 change: 1 addition & 0 deletions menus/templatetags/menu_tags.py
Expand Up @@ -126,6 +126,7 @@ class ShowMenu(InclusionTag):

def get_context(self, context, from_level, to_level, extra_inactive,
extra_active, template, namespace, root_id, next_page):
print("HELLO I AM IN SHOW_MENU")
try:
# If there's an exception (500), default context_processors may not be called.
request = context['request']
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -38,8 +38,8 @@ commands =
fe-{int1,int2,int3}-!only_docs: gulp tests:integration

!fe-!only_docs-dj111: pip install -rtest_requirements/django-1.11.txt
!fe-!only_docs: coverage run manage.py test -v2
!fe-test_docs: coverage run manage.py test -v2
!fe-!only_docs: coverage run manage.py test -v2 --failfast
!fe-test_docs: coverage run manage.py test -v2 --failfast

coveralls
deps=
Expand Down

0 comments on commit 053c141

Please sign in to comment.