Modify ↓
#11698 closed defect (fixed)
AttributeError: 'FakeRequest' object has no attribute 'authname'
| Reported by: | Steffen Hoffmann | Owned by: | Steffen Hoffmann |
|---|---|---|---|
| Priority: | normal | Component: | TracHacksPlugin |
| Severity: | normal | Keywords: | request Mock |
| Cc: | Michael Renzmann | Trac Release: |
Description
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 trachacks.util.FakeRequest.
The trivial fix - including excessive white-space cleanup - is straight-forward:
-
trachacksplugin/0.11/trachacks/util.py
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
Attachments (0)
Change History (4)
comment:1 Changed 11 years ago by
comment:3 Changed 11 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 Changed 11 years ago by
| Owner: | changed from Ryan J Ollos to Steffen Hoffmann |
|---|
Note: See
TracTickets for help on using
tickets.



In 13876: