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.