fixes a few code style issues and docs issues
This commit is contained in:
@@ -10,9 +10,7 @@ register = template.Library()
|
||||
|
||||
|
||||
def do_segment(parser, token):
|
||||
"""Block that only shows content if user is in chosen segment.
|
||||
|
||||
"""
|
||||
"""Block that only shows content if user is in chosen segment."""
|
||||
# Parse the tag
|
||||
tag_name, _, kwargs = parse_tag(token, parser)
|
||||
|
||||
@@ -33,9 +31,9 @@ register.tag('segment', do_segment)
|
||||
class SegmentNode(template.Node):
|
||||
"""Node that only returns contents if user is in the segment.
|
||||
|
||||
This node checks if the chosen segment exists and if the
|
||||
user has been segmented in the chosen segment.
|
||||
If not it will return nothing
|
||||
This node checks if the chosen segment exists and if the
|
||||
user has been segmented in the chosen segment.
|
||||
If not it will return nothing
|
||||
|
||||
"""
|
||||
def __init__(self, nodelist, name):
|
||||
|
@@ -3,7 +3,6 @@ import time
|
||||
from django.template.base import FilterExpression, kwarg_re
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
def impersonate_other_page(page, other_page):
|
||||
"""Function to change the page metadata so the user gets to see the
|
||||
non-personalized path and page.
|
||||
|
Reference in New Issue
Block a user