Author: justi9
Date: 2007-11-05 08:38:46 -0500 (Mon, 05 Nov 2007)
New Revision: 1231
Modified:
mgmt/cumin/python/wooly/__init__.py
Log:
A trivial change just for clarity.
Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py 2007-11-03 01:03:10 UTC (rev 1230)
+++ mgmt/cumin/python/wooly/__init__.py 2007-11-05 13:38:46 UTC (rev 1231)
@@ -697,17 +697,13 @@
elif callable(elem):
result = elem(self.widget, session, object)
- if result is None:
- result = ""
-
- writer.write(str(result))
+ if result is not None:
+ writer.write(str(result))
else:
result = elem.render(session, object)
- if result is None:
- result = ""
-
- writer.write(str(result))
+ if result is not None:
+ writer.write(str(result))
class WidgetCall(object):
def __init__(self, stack, widget, session, object):