[Zope-CVS] CVS: Products/CompositePage - designuis.py:1.1.2.5

Shane Hathaway shane at zope.com
Thu Feb 26 16:33:23 EST 2004


Update of /cvs-repository/Products/CompositePage
In directory cvs.zope.org:/tmp/cvs-serv32720

Modified Files:
      Tag: composite-flat-ui-branch
	designuis.py 
Log Message:
The manual UI is now designed to be embedded in a page.


=== Products/CompositePage/designuis.py 1.1.2.4 => 1.1.2.5 ===
--- Products/CompositePage/designuis.py:1.1.2.4	Thu Feb 26 11:28:47 2004
+++ Products/CompositePage/designuis.py	Thu Feb 26 16:32:52 2004
@@ -287,17 +287,20 @@
     """
     security = ClassSecurityInfo()
 
-    page = PageTemplateFile("page.pt", _manual)
+    body = PageTemplateFile("body.pt", _manual)
     manual_styles_css = InterpolatedFile(
         "manual_styles.css", "text/css", _manual)
     header_templates = (PageTemplateFile("header.pt", _manual),)
     manual_js = RawFile("manual.js", "text/javascript", _manual)
 
-    security.declarePrivate("render")
+    security.declarePublic("render")
     def render(self, composite):
         """Renders a composite, adding scripts and styles.
+
+        Returns an HTML fragment (not a full page).
         """
-        pt = self.page.__of__(composite)
-        return pt()
+        slot_data = composite.getSlotData()
+        pt = self.body.__of__(composite)
+        return pt(slot_data=slot_data)
 
 Globals.InitializeClass(ManualUI)




More information about the Zope-CVS mailing list