[Zope-Checkins] CVS: Releases/Zope/lib/python/AccessControl - User.py:1.167

Matthew T. Kromer matt@zope.com
Fri, 1 Mar 2002 13:05:40 -0500


Update of /cvs-repository/Releases/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv20042/lib/python/AccessControl

Modified Files:
	User.py 
Log Message:
Route user object wrap change to trunk


=== Releases/Zope/lib/python/AccessControl/User.py 1.166 => 1.167 ===
         """Return the user corresponding to the given id.
         """
-        try: return self.getUser(id)
+        # The connection between getting by ID and by name is not a strong
+        # one
+        try:
+            result=self.getUser(id)
+            return result.__of__(self) # Wrap in our context
         except:
            if default is _marker: raise
            return default