[Zope3-checkins] CVS: Zope3/src/zope/app/browser - undo_log.pt:1.7
Anthony Baxter
anthony@interlink.com.au
Mon, 28 Jul 2003 10:57:38 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv22860
Modified Files:
undo_log.pt
Log Message:
remove the bogus code that prepended "/ " to the username to get undo logs.
Have fixed the transaction code instead.
=== Zope3/src/zope/app/browser/undo_log.pt 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/undo_log.pt:1.6 Thu Jul 10 08:42:12 2003
+++ Zope3/src/zope/app/browser/undo_log.pt Mon Jul 28 10:57:33 2003
@@ -31,13 +31,8 @@
</span>
<span tal:condition="not:all">
<p>You are <span tal:replace="request/user/getId">username</span>, looking at your own transactions. <a href="?all=yes">View everyone's transactions</a>.
-<!-- This nasty piece of work is needed because user IDs are written to
- the transaction log with a (bogus?) "path" prepended to the username.
- see zodb.ztransaction.Transaction.setUser
- I can't see a way to reconstruct this path right now. I also can't see
- anywhere that calls setUser() with a path specified. -->
<span tal:omit-tag=""
- tal:define="global undoInfo python:view.getUndoInfo(first=first, user_name='/ '+request.user.getId())"/></p>
+ tal:define="global undoInfo python:view.getUndoInfo(first=first, user_name=request.user.getId())"/></p>
</span>
<p><a tal:attributes="href python:'?first=%s'%(first+20)">View 20 earlier transactions</a></p>