[Zope-CVS] CVS: Products/CompositePage - __init__.py:1.2
transformers.py:1.3
Shane Hathaway
shane at zope.com
Thu Oct 9 12:27:13 EDT 2003
Update of /cvs-repository/Products/CompositePage
In directory cvs.zope.org:/tmp/cvs-serv20959
Modified Files:
__init__.py transformers.py
Log Message:
Added a stub CMF-oriented transformer
=== Products/CompositePage/__init__.py 1.1 => 1.2 ===
--- Products/CompositePage/__init__.py:1.1 Fri Sep 26 17:21:05 2003
+++ Products/CompositePage/__init__.py Thu Oct 9 12:27:12 2003
@@ -22,6 +22,7 @@
tool.registerTransformer("common", transformers.CommonTransformer())
tool.registerTransformer("zmi", transformers.ZMITransformer())
+ tool.registerTransformer("cmf", transformers.CMFTransformer())
context.registerClass(
tool.CompositeTool,
=== Products/CompositePage/transformers.py 1.2 => 1.3 ===
--- Products/CompositePage/transformers.py:1.2 Wed Oct 1 14:59:31 2003
+++ Products/CompositePage/transformers.py Thu Oct 9 12:27:12 2003
@@ -168,3 +168,17 @@
Globals.InitializeClass(ZMITransformer)
+
+class CMFTransformer (CommonTransformer):
+ """CMF page transformer.
+
+ Adds CMF-specific scripts and styles to a page.
+ """
+ security = ClassSecurityInfo()
+
+ header_templates = CommonTransformer.header_templates + ()
+ top_templates = CommonTransformer.top_templates + ()
+ bottom_templates = CommonTransformer.bottom_templates + ()
+
+Globals.InitializeClass(CMFTransformer)
+
More information about the Zope-CVS
mailing list