Removed an unused code path.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15796 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2011-03-10 18:42:33 +00:00
parent e9d2763947
commit e2627d267d
1 changed files with 1 additions and 5 deletions

View File

@ -482,15 +482,13 @@ class WidthRatioNode(Node):
return str(int(round(ratio))) return str(int(round(ratio)))
class WithNode(Node): class WithNode(Node):
def __init__(self, var, name, nodelist, extra_context=None, def __init__(self, var, name, nodelist, extra_context=None):
isolated_context=False):
self.nodelist = nodelist self.nodelist = nodelist
# var and name are legacy attributes, being left in case they are used # var and name are legacy attributes, being left in case they are used
# by third-party subclasses of this Node. # by third-party subclasses of this Node.
self.extra_context = extra_context or {} self.extra_context = extra_context or {}
if name: if name:
self.extra_context[name] = var self.extra_context[name] = var
self.isolated_context = isolated_context
def __repr__(self): def __repr__(self):
return "<WithNode>" return "<WithNode>"
@ -498,8 +496,6 @@ class WithNode(Node):
def render(self, context): def render(self, context):
values = dict([(key, val.resolve(context)) for key, val in values = dict([(key, val.resolve(context)) for key, val in
self.extra_context.iteritems()]) self.extra_context.iteritems()])
if self.isolated_context:
return self.nodelist.render(Context(values))
context.update(values) context.update(values)
output = self.nodelist.render(context) output = self.nodelist.render(context)
context.pop() context.pop()