[Zope-CVS] CVS: Products/CompositePage - __init__.py:1.3
Shane Hathaway
shane at zope.com
Mon Oct 13 12:12:53 EDT 2003
Update of /cvs-repository/Products/CompositePage
In directory cvs.zope.org:/tmp/cvs-serv3038
Modified Files:
__init__.py
Log Message:
Moved transformer registration to run at module import time.
This fixes an issue with a test suite that runs initialize() many times
but imports only once.
=== Products/CompositePage/__init__.py 1.2 => 1.3 ===
--- Products/CompositePage/__init__.py:1.2 Thu Oct 9 12:27:12 2003
+++ Products/CompositePage/__init__.py Mon Oct 13 12:12:53 2003
@@ -17,12 +17,12 @@
import tool, composite, slot, transformers
+tool.registerTransformer("common", transformers.CommonTransformer())
+tool.registerTransformer("zmi", transformers.ZMITransformer())
+tool.registerTransformer("cmf", transformers.CMFTransformer())
-def initialize(context):
- tool.registerTransformer("common", transformers.CommonTransformer())
- tool.registerTransformer("zmi", transformers.ZMITransformer())
- tool.registerTransformer("cmf", transformers.CMFTransformer())
+def initialize(context):
context.registerClass(
tool.CompositeTool,
More information about the Zope-CVS
mailing list