[Checkins] SVN: z3ext.layout/trunk/ Fixed python2.4 compatibility

Nikolay Kim fafhrd at datacom.kz
Mon Nov 24 04:07:08 EST 2008


Log message for revision 93288:
  Fixed python2.4 compatibility

Changed:
  U   z3ext.layout/trunk/CHANGES.txt
  U   z3ext.layout/trunk/src/z3ext/layout/pagelet.txt

-=-
Modified: z3ext.layout/trunk/CHANGES.txt
===================================================================
--- z3ext.layout/trunk/CHANGES.txt	2008-11-23 22:08:40 UTC (rev 93287)
+++ z3ext.layout/trunk/CHANGES.txt	2008-11-24 09:07:07 UTC (rev 93288)
@@ -2,6 +2,12 @@
 CHANGES
 =======
 
+1.5.9 (2008-11-24)
+------------------
+
+- Fixed python2.4 compatibility
+
+
 1.5.7 (2008-11-17)
 ------------------
 

Modified: z3ext.layout/trunk/src/z3ext/layout/pagelet.txt
===================================================================
--- z3ext.layout/trunk/src/z3ext/layout/pagelet.txt	2008-11-23 22:08:40 UTC (rev 93287)
+++ z3ext.layout/trunk/src/z3ext/layout/pagelet.txt	2008-11-24 09:07:07 UTC (rev 93288)
@@ -5,10 +5,11 @@
 Show how we can use the pagelet directive. Register the meta configuration for 
 the directive.
 
-  >>> import os, tempfile
+  >>> import os, tempfile, sys
   >>> from zope import interface, component
   >>> from zope.configuration import xmlconfig
   >>> from z3ext.layout.interfaces import IPagelet
+
   >>> import z3ext.layout
   >>> context = xmlconfig.file('meta.zcml', z3ext.layout)
 
@@ -183,6 +184,12 @@
   ...
   LookupError: Can't find IPageTemplate for pagelet.
 
+  >>> try:
+  ...     __file__
+  ... except NameError:
+  ...     from z3ext.layout import tests
+  ...     __file__ = tests.__file__
+
   >>> from zope.pagetemplate.interfaces import IPageTemplate
   >>> from zope.app.pagetemplate import ViewPageTemplateFile
   >>> pt = ViewPageTemplateFile(template)



More information about the Checkins mailing list