app/soc/logic/accounts.py
changeset 512 aae25d2b4464
parent 499 d22e4fe8e64b
child 543 280a1ac6bcc1
--- a/app/soc/logic/accounts.py	Thu Nov 20 18:06:43 2008 +0000
+++ b/app/soc/logic/accounts.py	Thu Nov 20 18:50:30 2008 +0000
@@ -113,17 +113,17 @@
 
 
 # TODO(tlarsen): make this generic for any Linkable and move elsewhere
-def getUserFromLinkNameOr404(link_name):
-  """Like getUserFromLinkName but expects to find a user.
+def getUserFromLinkIdOr404(link_id):
+  """Like getUserFromLinkId but expects to find a user.
 
   Raises:
     out_of_band.ErrorResponse if no User entity is found
   """
-  user = models.user.logic.getForFields({'link_name': link_name},
+  user = models.user.logic.getForFields({'link_id': link_id},
                                         unique=True)
 
   if user:
     return user
 
   raise out_of_band.ErrorResponse(
-      'There is no user with a "link name" of "%s".' % link_name, status=404)
+      'There is no user with a "link ID" of "%s".' % link_id, status=404)