[Zope-Checkins] SVN: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/PythonExpr.py use even shorter deprecation code (zope.deprecation.moved)

Philipp von Weitershausen philikon at philikon.de
Tue May 9 04:49:39 EDT 2006


Log message for revision 68051:
  use even shorter deprecation code (zope.deprecation.moved)
  

Changed:
  U   Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/PythonExpr.py

-=-
Modified: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/PythonExpr.py
===================================================================
--- Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/PythonExpr.py	2006-05-09 08:46:34 UTC (rev 68050)
+++ Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/PythonExpr.py	2006-05-09 08:49:39 UTC (rev 68051)
@@ -15,10 +15,5 @@
 $Id$
 """
 # BBB 2005/05/01 -- remove after 12 months
-import zope.deferredimport
-zope.deferredimport.deprecatedFrom(
-    "Zope 2 uses the Zope 3 ZPT engine now.  The PythonExpr type can be "
-    "imported from zope.tales.pythonexpr.",
-    "zope.tales.pythonexpr",
-    "PythonExpr", "ExprTypeProxy"
-    )
+import zope.deprecation
+zope.deprecation.moved("zope.tales.pythonexpr", "2.12")



More information about the Zope-Checkins mailing list