PEP8 and simple cleanups

This commit is contained in:
Roberto Rosario
2014-05-19 16:19:55 -04:00
parent fd254135f5
commit 60ac55bfd3
4 changed files with 6 additions and 13 deletions

View File

@@ -14,10 +14,12 @@ from .permissions import (PERMISSION_DOCUMENT_INDEXING_VIEW,
def is_not_root_node(context):
# TODO: FIX: Check for parent node the proper way
return context['node'].parent is not None
def is_not_instance_root_node(context):
# TODO: FIX: Check for parent node the proper way
return context['object'].parent is not None