[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/VFS - Publication.py:1.1.2.2
Stephan Richter
srichter@cbu.edu
Tue, 9 Apr 2002 12:12:31 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/VFS
In directory cvs.zope.org:/tmp/cvs-serv4334/App/ZopePublication/VFS
Modified Files:
Tag: Zope3-Server-Branch
Publication.py
Log Message:
Check in my big mess of stuff, which is working towards making FTP work
together with the Publisher. I will keep working on startup now, so that
we can test easier.
This is basically a check-in, so that Shane can see what I have done last
night. Please do not expect anything towork, since this is more than just
work in progress... it is a prototype to get FTP running via Publisher!
=== Zope3/lib/python/Zope/App/ZopePublication/VFS/Publication.py 1.1.2.1 => 1.1.2.2 ===
from Zope.App.ZopePublication.ZopePublication import ZopePublication
+from Zope.ComponentArchitecture import getRequestView
+from Zope.Publisher.Exceptions import NotFound
+from Zope.Publisher.mapply import mapply
+
+
class VFSPublication(ZopePublication):
"""The Publication will do all the work for the VFS"""
+
+
+ def callObject(self, request, ob):
+
+ view = getRequestView(ob, 'vfs', request, self)
+
+ if view is not self:
+ method = getattr(view, request.method)
+ else:
+ raise NotFound(ob, 'vfs', request)
+
+ return mapply(method, request.getPositionalArguments(), request)