[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/XMLRPC/tests - testXMLRPCRequest.py:1.4

Stephan Richter srichter@cbu.edu
Sun, 16 Jun 2002 14:40:25 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/XMLRPC/tests
In directory cvs.zope.org:/tmp/cvs-serv26330/Publisher/XMLRPC/tests

Modified Files:
	testXMLRPCRequest.py 
Log Message:
Okay, someone refactored the entire publisher again!!! This person also 
only cared about updating the browser stuff and not XMLRPC and VFS.
Furthermore, Browser-specific stuff reoccirred in generic directories where
they do not belong. I also found much unused code, like the entire 
AttributePublisher, which seems deprecated! I did not fix the latter two 
problems, since it already took me 9 hours to get the basic XMLRPC running
in the new design. (If you can tell, I am a little aggrevated about this,
since we had it clean before and I wasted a lot of time on it last night!)

So, I would therefore propose a MAJOR Publisher/Publication code cleanup 
where we throw out the unused stuff and put code to the place where it 
belongs. 

I have not even checked the VFS implementation yet to see how bad the 
damage is there...

But afterall, at least XMLRPC works again, and I think I will be able to 
fix VFS too.


=== Zope3/lib/python/Zope/Publisher/XMLRPC/tests/testXMLRPCRequest.py 1.3 => 1.4 ===
 from Zope.Publisher.Publish import publish
 from Zope.Publisher.DefaultPublication import DefaultPublication
-from Zope.Publisher.XMLRPC.IXMLRPCPublisher import IXMLRPCPublisher
+from Zope.Publisher.XMLRPC.IXMLRPCPresentation import IXMLRPCPresentation
 
 from cStringIO import StringIO
 
@@ -119,10 +119,8 @@
 
 
     def testIPresentationRequest(self):
-        ''' test the IView request'''
-    
         r = self._createRequest()
-        self.failUnless( r.getPresentationType() is IXMLRPCPublisher)
+        self.failUnless( r.getPresentationType() is IXMLRPCPresentation)
 
     
     def testProcessInput(self):