[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - __init__.py:1.13

Albertas Agejevas alga@codeworks.lt
Mon, 9 Jun 2003 12:39:46 -0400


Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv9936/src/zope/publisher/interfaces

Modified Files:
	__init__.py 
Log Message:
Make authenticated principal name appear in the hit logs.

This forced us to do some marginal hockery that is best removed when the 
HTTP server machinery is refactored.  More info in the comments.


=== Zope3/src/zope/publisher/interfaces/__init__.py 1.12 => 1.13 ===
--- Zope3/src/zope/publisher/interfaces/__init__.py:1.12	Tue Jun  3 10:32:06 2003
+++ Zope3/src/zope/publisher/interfaces/__init__.py	Mon Jun  9 12:39:15 2003
@@ -287,10 +287,10 @@
     user = Attribute("""User object associated with the request
 
                         It is up to the publication object to set this
-                        attribute.
+                        attribute by calling the setUser method.
                         """)
 
-    response = Attribute("""the request's response object
+    response = Attribute("""The request's response object
 
         Return an IPublisherResponse for the request.
         """)
@@ -324,6 +324,12 @@
         """Set the skin to be used for the request.
 
         It's up to the publication object to decide this.
+        """
+
+    def setUser(user):
+        """Set the user attribute.
+
+        It should be IPrincipal wrapped in it's AuthenticationService's context.
         """