[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/HTTP - Publication.py:1.1.2.3 __init__.py:1.1.6.1
Jim Fulton
jim@zope.com
Tue, 26 Mar 2002 16:26:26 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/HTTP
In directory cvs.zope.org:/tmp/cvs-serv7731/Zope/App/ZopePublication/HTTP
Added Files:
Tag: Zope-3x-branch
Publication.py __init__.py
Log Message:
Merged the publication refactoring branch into the main branch.
Also renamed:
browser_reaverse -> publishTraverse
browser_default -> browserDefault
=== Zope3/lib/python/Zope/App/ZopePublication/HTTP/Publication.py 1.1.2.2 => 1.1.2.3 ===
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+#
+##############################################################################
+"""
+
+Revision information:
+$Id$
+"""
+
+from Zope.App.ZopePublication.ZopePublication import ZopePublication
+
+class ZopeHTTPPublication(ZopePublication):
+ "HTTP-specific support"
+
+ def afterTraversal(self, request, ob):
+ request_get = request.get
+ T=get_transaction()
+ T.note(request_get('PATH_INFO'))
+ auth_user=request_get('AUTHENTICATED_USER',None)
+ if auth_user is not None:
+ T.setUser(auth_user, request_get('AUTHENTICATION_PATH'))
=== Added File Zope3/lib/python/Zope/App/ZopePublication/HTTP/__init__.py ===