[Zope-Checkins] SVN: Zope/trunk/ - Collector #2209: ZTUtils module could not be used inside ZPT

Andreas Jung andreas at andreas-jung.com
Sun Oct 8 06:55:08 EDT 2006


Log message for revision 70570:
  
        - Collector #2209: ZTUtils module could not be used inside ZPT
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/Products/PageTemplates/__init__.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2006-10-08 10:54:03 UTC (rev 70569)
+++ Zope/trunk/doc/CHANGES.txt	2006-10-08 10:55:03 UTC (rev 70570)
@@ -34,6 +34,8 @@
 
     Bugs Fixed
 
+      - Collector #2209: ZTUtils module could not be used inside ZPT
+
       - Collector #2208: rewriting/setting the 'charset' part of the content-type
         HTTP header will be done only for 'text/*'
 

Modified: Zope/trunk/lib/python/Products/PageTemplates/__init__.py
===================================================================
--- Zope/trunk/lib/python/Products/PageTemplates/__init__.py	2006-10-08 10:54:03 UTC (rev 70569)
+++ Zope/trunk/lib/python/Products/PageTemplates/__init__.py	2006-10-08 10:55:03 UTC (rev 70570)
@@ -21,6 +21,12 @@
 # Placeholder for Zope Product data
 misc_ = {}
 
+# import ZTUtils in order to make i importable through
+# ZopeGuards.load_module() where an importable modules must be
+# available in sys.modules
+import ZTUtils
+
+
 def initialize(context):
     # Import lazily, and defer initialization to the module
     import ZopePageTemplate



More information about the Zope-Checkins mailing list