AttributeError: 'FakeRequest' object has no attribute 'authname'
|Reported by:||Steffen Hoffmann||Owned by:||Steffen Hoffmann|
|Cc:||Michael Renzmann||Trac Release:|
This was reported on 10-Apr-2014 by Paul Tobias via th-users mailing list, but appeared with rather big delay only today. It was rather easy to track it down to the new tag change recording, that requires evaluation of
req.authname, which is not take care for in
The trivial fix - including excessive white-space cleanup - is straight-forward:
diff --git a/trachacksplugin/0.11/trachacks/util.py b/trachacksplugin/0.11/trachacks/util.py
a b 13 13 14 14 15 15 class FakeRequest(object): 16 def __init__(self, env, authname = 'anonymous'): 16 def __init__(self, env, authname='anonymous'): 17 self.authname = authname 17 18 self.perm = PermissionCache(env, authname) 18 19 19 20