[Checkins] SVN: Zope/trunk/ - removed 'Main' and 'Zope' wrappers for Test.publish

Yvo Schubbe y.2010 at wcm-solutions.de
Tue Jun 22 09:54:18 EDT 2010


Log message for revision 113762:
  - removed 'Main' and 'Zope' wrappers for Test.publish

Changed:
  U   Zope/trunk/doc/CHANGES.rst
  U   Zope/trunk/src/ZPublisher/__init__.py

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst	2010-06-22 13:39:12 UTC (rev 113761)
+++ Zope/trunk/doc/CHANGES.rst	2010-06-22 13:54:17 UTC (rev 113762)
@@ -11,6 +11,10 @@
 Restructuring
 +++++++++++++
 
+- ZPublisher: Removed 'Main' and 'Zope' wrappers for Test.publish.
+  If anybody really used them, he can easily use ZPublisher.test instead. In
+  the long run ZPublisher.test and ZPublisher.Test might also be removed.
+
 - Moved AccessControl, DocumentTemplate (incl. TreeDisplay) and
   Products.ZCTextIndex to their own distributions. This removes the last
   direct C extensions from the Zope2 distribution.

Modified: Zope/trunk/src/ZPublisher/__init__.py
===================================================================
--- Zope/trunk/src/ZPublisher/__init__.py	2010-06-22 13:39:12 UTC (rev 113761)
+++ Zope/trunk/src/ZPublisher/__init__.py	2010-06-22 13:54:17 UTC (rev 113762)
@@ -28,16 +28,3 @@
     import Test
     test=Test.publish
     return apply(test, args, kw)
-
-def Main(*args, **kw):
-    global test
-    import Test
-    test=Test.publish
-    return apply(test, ('Main',)+args, kw)
-
-# What can we say. ;/
-def Zope(*args, **kw):
-    global test
-    import Test
-    test=Test.publish
-    return apply(test, ('Zope',)+args, kw)



More information about the checkins mailing list