[Zope-Checkins] CVS: Zope/lib/python/Products/ZopeTutorial - TutorialTopic.py:1.13.6.1

Chris McDonough chrism@zope.com
Wed, 16 Oct 2002 17:34:38 -0400


Update of /cvs-repository/Zope/lib/python/Products/ZopeTutorial
In directory cvs.zope.org:/tmp/cvs-serv27921/Products/ZopeTutorial

Modified Files:
      Tag: Zope-2_6-branch
	TutorialTopic.py 
Log Message:
Fix up calls to user objects' getUserName which should really be calls to 
getId.  This is a change designed to make it possible to disambiguate user names and user ids in subclasses of user folders, while still doing the "right thing" with respect to local data structures that keep pointers to user ids (eg. local roles, etc.)


=== Zope/lib/python/Products/ZopeTutorial/TutorialTopic.py 1.13 => 1.13.6.1 ===
--- Zope/lib/python/Products/ZopeTutorial/TutorialTopic.py:1.13	Wed Aug 14 18:25:19 2002
+++ Zope/lib/python/Products/ZopeTutorial/TutorialTopic.py	Wed Oct 16 17:34:37 2002
@@ -198,7 +198,7 @@
         if 'Owner' in roles:
             obj.manage_delLocalRoles([user])
             break
-    obj.manage_setLocalRoles(owner.getUserName(), ['Owner'])
+    obj.manage_setLocalRoles(owner.getId(), ['Owner'])
     for subobj in obj.objectValues():
         changeOwner(subobj, owner)