Skip to content

Commit

Permalink
use path_info instead of path (script_name isn't relevant)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Dec 30, 2012
1 parent c714987 commit c72cd50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
@@ -1,8 +1,8 @@
Next release Next release
------------ ------------


- Write username and ``request.path`` as transaction metadata via ``t.setUser`` - Write unauthenticated userid and ``request.path_info`` as transaction
and ``t.note`` respectively during a commit. metadata via ``t.setUser`` and ``t.note`` respectively during a commit.


0.6 (2012-12-26) 0.6 (2012-12-26)
---------------- ----------------
Expand Down
2 changes: 1 addition & 1 deletion pyramid_tm/__init__.py
Expand Up @@ -66,7 +66,7 @@ def tm_tween(request):
raise AbortResponse(response) raise AbortResponse(response)
t = manager.get() t = manager.get()
t.setUser(userid, '') t.setUser(userid, '')
t.note(request.path) t.note(request.path_info)
manager.commit() manager.commit()
return response return response
except AbortResponse: except AbortResponse:
Expand Down
2 changes: 1 addition & 1 deletion pyramid_tm/tests.py
Expand Up @@ -267,7 +267,7 @@ def note(self, value):
self._note = value self._note = value


class DummyRequest(object): class DummyRequest(object):
path = '/' path_info = '/'
def __init__(self): def __init__(self):
self.environ = {} self.environ = {}
self.made_seekable = 0 self.made_seekable = 0
Expand Down

0 comments on commit c72cd50

Please sign in to comment.