You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2004/01/14 05:05:02 UTC

cvs commit: httpd-python/Doc modpython5.tex

grisha      2004/01/13 20:05:02

  Modified:    Doc      modpython5.tex
  Log:
  Error in documentation referring to obsolete req.connection.user
  
  Submitted by:	Martin Clausen
  
  Revision  Changes    Path
  1.19      +4 -5      httpd-python/Doc/modpython5.tex
  
  Index: modpython5.tex
  ===================================================================
  RCS file: /home/cvs/httpd-python/Doc/modpython5.tex,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- modpython5.tex	30 Sep 2003 21:17:54 -0000	1.18
  +++ modpython5.tex	14 Jan 2004 04:05:02 -0000	1.19
  @@ -195,9 +195,8 @@
   verifying that the [encrypted] password sent matches the one in the
   database).
   
  -To obtain the username, use \code{req.connection.user}. To obtain the
  -password entered by the user, use the \code{req.get_basic_auth_pw()}
  -function.
  +To obtain the username, use \code{req.user}. To obtain the password
  +entered by the user, use the \code{req.get_basic_auth_pw()} function.
   
   A return of \code{apache.OK} means the authentication succeeded. A
   return of \code{apache.HTTP_UNAUTHORIZED} with most browser will bring
  @@ -213,7 +212,7 @@
   def authenhandler(req):
   
       pw = req.get_basic_auth_pw()
  -    user = req.connection.user     
  +    user = req.user     
       if user == "spam" and pw == "eggs":
           return apache.OK
       else:
  @@ -222,7 +221,7 @@
   
   \begin{notice}
     \code{req.get_basic_auth_pw()} must be called prior to using the
  -  \code{req.connection.user} value. Apache makes no attempt to decode the
  +  \code{req.user} value. Apache makes no attempt to decode the
     authentication information unless \code{req.get_basic_auth_pw()} is called.
   \end{notice}