From f7c364d34be149b9d0056fad243eb63e9672c3fd Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 4 Oct 2012 20:36:30 -0500 Subject: [PATCH] fixed issue 1067 --- VERSION | 2 +- gluon/template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c98d9502..4badc583 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-10-04 20:17:03) dev +Version 2.0.9 (2012-10-04 20:36:17) dev diff --git a/gluon/template.py b/gluon/template.py index 3d6442c0..179b8396 100644 --- a/gluon/template.py +++ b/gluon/template.py @@ -416,7 +416,7 @@ class TemplateParser(object): # Allow Views to include other views dynamically context = self.context if current and not "response" in context: - context["response"] = current.response + context["response"] = getattr(current,'response',None) # Get the filename; filename looks like ``"template.html"``. # We need to eval to remove the quotes and get the string type.