[rhmessaging-commits] rhmessaging commits: r3194 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Mar 20 17:47:58 EDT 2009


Author: justi9
Date: 2009-03-20 17:47:57 -0400 (Fri, 20 Mar 2009)
New Revision: 3194

Modified:
   mgmt/trunk/wooly/python/wooly/__init__.py
Log:
Turn a null do_render result into empty string

Modified: mgmt/trunk/wooly/python/wooly/__init__.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/__init__.py	2009-03-20 20:46:18 UTC (rev 3193)
+++ mgmt/trunk/wooly/python/wooly/__init__.py	2009-03-20 21:47:57 UTC (rev 3194)
@@ -251,6 +251,9 @@
         args = self.get_args(session)
         string = self.do_render(session, *args)
 
+        if string is None:
+            string = ""
+
         if session.debug:
             call.close()
 
@@ -781,6 +784,7 @@
         return None
 
     def render(self, writer, session, *args):
+        # XXX do this in an init method instead
         if not self.__fragments:
             self.__fragments = self.compile()
 




More information about the rhmessaging-commits mailing list