[CMF-checkins] CVS: CMF/CMFDefault/skins/generic - discussion_reply.py:1.3 folder_localrole_form.dtml:1.2 logged_in.dtml:1.3
Chris McDonough
chrism@zope.com
Thu, 17 Oct 2002 15:39:07 -0400
Update of /cvs-repository/CMF/CMFDefault/skins/generic
In directory cvs.zope.org:/tmp/cvs-serv16445/CMFDefault/skins/generic
Modified Files:
discussion_reply.py folder_localrole_form.dtml logged_in.dtml
Log Message:
- Multimodule checkin to convert calls from user.getUserName() to
user.getId() where appropriate. User names should not be used
as immutable references, while user ids should. The distinction
is not clearly enforcd in the stock user folder or any current user
folder implementations, but newer user folder implementations
will rely upon it.
=== CMF/CMFDefault/skins/generic/discussion_reply.py 1.2 => 1.3 ===
--- CMF/CMFDefault/skins/generic/discussion_reply.py:1.2 Sat Jun 29 17:00:39 2002
+++ CMF/CMFDefault/skins/generic/discussion_reply.py Thu Oct 17 15:38:36 2002
@@ -2,7 +2,7 @@
##parameters=title,text
##title=Reply to content
-Creator = context.portal_membership.getAuthenticatedMember().getUserName()
+Creator = context.portal_membership.getAuthenticatedMember().getId()
replyID = context.createReply( title = title
, text = text
, Creator = Creator
=== CMF/CMFDefault/skins/generic/folder_localrole_form.dtml 1.1 => 1.2 ===
--- CMF/CMFDefault/skins/generic/folder_localrole_form.dtml:1.1 Tue Jul 17 15:47:37 2001
+++ CMF/CMFDefault/skins/generic/folder_localrole_form.dtml Thu Oct 17 15:38:36 2002
@@ -111,7 +111,7 @@
<tr>
<td width="16">
<dtml-if expr="_['sequence-key'] !=
-portal_membership.getAuthenticatedMember().getUserName()">
+portal_membership.getAuthenticatedMember().getId()">
<input type="checkbox" name="member_ids:list" value="&dtml-sequence-key;">
<dtml-else>
=== CMF/CMFDefault/skins/generic/logged_in.dtml 1.2 => 1.3 ===
--- CMF/CMFDefault/skins/generic/logged_in.dtml:1.2 Mon Mar 18 10:27:20 2002
+++ CMF/CMFDefault/skins/generic/logged_in.dtml Thu Oct 17 15:38:36 2002
@@ -89,7 +89,7 @@
<p class="Desktop">Welcome. You are currently logged in.
<!--Don't forget to take a look at your
-<a href="<!--#var SCRIPT_NAME-->/Members/<!--#var "member.getUserName()" url_quote-->/update_html">personalization
+<a href="<!--#var SCRIPT_NAME-->/Members/<!--#var "member.getId()" url_quote-->/update_html">personalization
page</a>.-->
</p>