From 8120f75ace82e4577cda724346e1952e1eaf3533 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 26 Jul 2012 17:53:35 -0500 Subject: [PATCH] BR()+BR() --- VERSION | 2 +- gluon/html.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 747c91ff..5d98ccce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-26 17:42:17) dev +Version 2.00.0 (2012-07-26 17:53:32) dev diff --git a/gluon/html.py b/gluon/html.py index 50b61cd0..3776f67b 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -474,6 +474,16 @@ class XmlComponent(object): raise NotImplementedError def __mul__(self,n): return CAT(*[self for i in range(n)]) + def __add__(self,other): + if isinstance(self,CAT): + components = self.components + else: + components = [self] + if isinstance(other,CAT): + components += other.components + else: + components += [other] + return CAT(*components) class XML(XmlComponent): """