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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Aug 12 13:48:02 EDT 2009


Author: eallen
Date: 2009-08-12 13:48:02 -0400 (Wed, 12 Aug 2009)
New Revision: 3559

Modified:
   mgmt/trunk/wooly/python/wooly/__init__.py
   mgmt/trunk/wooly/python/wooly/__init__.strings
Log:
When a widget has self.deferred_enabled=True, it displays the class' deferred_html template as the page loads. This change adds a {deferred_content} to the base class template so it can be overridden without redefining the .deffered_html template.

Modified: mgmt/trunk/wooly/python/wooly/__init__.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/__init__.py	2009-08-12 17:41:39 UTC (rev 3558)
+++ mgmt/trunk/wooly/python/wooly/__init__.py	2009-08-12 17:48:02 UTC (rev 3559)
@@ -320,6 +320,9 @@
 
         return writer.to_string()
 
+    def render_deferred_content(self, session, *args):
+        return None
+
     def prt(self):
         print self
 

Modified: mgmt/trunk/wooly/python/wooly/__init__.strings
===================================================================
--- mgmt/trunk/wooly/python/wooly/__init__.strings	2009-08-12 17:41:39 UTC (rev 3558)
+++ mgmt/trunk/wooly/python/wooly/__init__.strings	2009-08-12 17:48:02 UTC (rev 3559)
@@ -2,7 +2,7 @@
 {content}
 
 [Widget.deferred_html]
-<div id="{id}"></div>
+<div id="{id}">{deferred_content}</div>
 
 [Page.html]
 <?xml version="1.0" encoding="UTF-8"?>



More information about the rhmessaging-commits mailing list