From 1173f292fa5570bbab2389188febdbd67b472f0a Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Sat, 19 May 2012 22:35:12 -0500 Subject: [PATCH] {{super}} equals '' if no parent --- VERSION | 2 +- gluon/template.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index f2cbe091..cf2dc60b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-05-19 10:11:52) dev +Version 2.00.0 (2012-05-19 22:34:21) dev diff --git a/gluon/template.py b/gluon/template.py index 073f7199..8cdc8706 100644 --- a/gluon/template.py +++ b/gluon/template.py @@ -47,8 +47,8 @@ class SuperNode(Node): if self.value: return str(self.value) else: - raise SyntaxError("Undefined parent block ``%s``. \n" % self.name + \ -"You must define a block before referencing it.\nMake sure you have not left out an ``{{end}}`` tag." ) + # raise SyntaxError("Undefined parent block ``%s``. \n" % self.name + "You must define a block before referencing it.\nMake sure you have not left out an ``{{end}}`` tag." ) + return '' def __repr__(self): return "%s->%s" % (self.name, self.value)