Changes between Version 4 and Version 5 of SslAuthenticationPlugin


Ignore:
Timestamp:
Jul 1, 2009, 9:54:14 AM (15 years ago)
Author:
Giel van Schijndel
Comment:

Update diff for r6136, add note that the diff is only required for 0.10

Legend:

Unmodified
Added
Removed
Modified
  • SslAuthenticationPlugin

    v4 v5  
    1818== Example ==
    1919
    20 Currently a small patch is required to be applied against Trac in order to get this working (this patch is against 10.4-2, the -2 represents a Debian package revision):
     20For Trac 0.10 only(!), a small patch is currently required to be applied against Trac in order to get this working (this patch is against 0.10.4-2, the -2 represents a Debian package revision):
    2121{{{
    2222#!diff
    2323diff -Nur /usr/share/python-support/trac/trac/web/main.py /var/lib/python-support/python2.4/trac/web/main.py
    2424--- /usr/share/python-support/trac/trac/web/main.py     2007-05-30 03:23:40.000000000 +0200
    25 +++ /var/lib/python-support/python2.4/trac/web/main.py  2008-04-26 21:55:45.000000000 +0200
    26 @@ -180,7 +180,13 @@
     25+++ /var/lib/python-support/python2.4/trac/web/main.py  2009-06-01 11:38:45.000000000 +0200
     26@@ -180,7 +180,10 @@
    2727             if not getattr(chosen_handler, 'anonymous_request', False):
    2828                 try:
     
    3030-                    req.perm = PermissionCache(self.env, req.authname)
    3131+                    try:
    32 +                        if req.perm_user:
    33 +                            req.perm = PermissionCache(self.env, req.perm_user)
    34 +                        else:
    35 +                            req.perm = PermissionCache(self.env, req.authname)
    36 +                    except:
     32+                        req.perm = PermissionCache(self.env, req.perm_user)
     33+                    except AttributeError:
    3734+                        req.perm = PermissionCache(self.env, req.authname)
    3835                     req.session = Session(self.env, req)