From de88f3bde90ac23afbd001051b4e78cf57dd62dd Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 29 Aug 2012 15:42:51 -0500 Subject: [PATCH] fixed problem with iterator in template.py --- VERSION | 2 +- gluon/template.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c4320b04..daf05c16 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.1 (2012-08-29 15:13:07) rc4 +Version 2.00.1 (2012-08-29 15:42:48) rc4 diff --git a/gluon/template.py b/gluon/template.py index a8481338..3d6442c0 100644 --- a/gluon/template.py +++ b/gluon/template.py @@ -177,7 +177,8 @@ class Content(BlockNode): if isinstance(other, (list, tuple)): # Must reverse so the order stays the same. other.reverse() - (self._insert(item, index) for item in other) + for item in other: + self._insert(item, index) else: self._insert(other, index)